Plugin Directory

Changeset 404168


Ignore:
Timestamp:
07/03/2011 08:44:14 PM (15 years ago)
Author:
e2b
Message:

fixes strict error reporting and fatal error

Location:
hyphenator
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hyphenator/tags/3.3.0/options.php

    r402275 r404168  
    5757        case '3.3.0':   // option 'en' -> 'en-us'
    5858            $array = get_option('hyphenator_languages');
    59             if ( ($key = array_search("en", $array)) !== false) {
     59            if ( is_array($array) && (($key = array_search('en', $array)) !== false) ) {
    6060                unset($array[$key]);
    6161                if (!in_array('en-us', $array)) {
  • hyphenator/tags/3.3.0/plugin.php

    r402286 r404168  
    3838
    3939function hyphenator_admin() {
    40     add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 10, 'hyphenator/options.php'); // under "options"
     40    add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 'manage_options', 'hyphenator/options.php'); // under "options"
    4141}
    4242
  • hyphenator/trunk/options.php

    r402275 r404168  
    5757        case '3.3.0':   // option 'en' -> 'en-us'
    5858            $array = get_option('hyphenator_languages');
    59             if ( ($key = array_search("en", $array)) !== false) {
     59            if ( is_array($array) && (($key = array_search('en', $array)) !== false) ) {
    6060                unset($array[$key]);
    6161                if (!in_array('en-us', $array)) {
  • hyphenator/trunk/plugin.php

    r402286 r404168  
    3838
    3939function hyphenator_admin() {
    40     add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 10, 'hyphenator/options.php'); // under "options"
     40    add_options_page(__('Hyphenator Options', 'hyphenator'), 'Hyphenator', 'manage_options', 'hyphenator/options.php'); // under "options"
    4141}
    4242
Note: See TracChangeset for help on using the changeset viewer.