Make WordPress Core


Ignore:
Timestamp:
06/01/2004 10:01:15 AM (21 years ago)
Author:
saxmatt
Message:

Some fixes from Joeseph Scott.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r1355 r1379  
    3939require_once('./optionhandler.php');
    4040$non_was_selected = 0;
    41 if ('' == $_GET['option_group_id']) {
     41if (!isset($_GET['option_group_id'])) {
    4242    $option_group_id = 1;
    4343    $non_was_selected = 1;
     
    7575            if ($user_level >= $option->option_admin_level) {
    7676                $old_val = stripslashes($option->option_value);
    77                 $new_val = $_POST[$option->option_name];
     77                if(isset($_POST[$option->option_name])) $new_val = $_POST[$option->option_name];
    7878                if (!$new_val) {
    7979                    if (3 == $option->option_type)
     
    8888                    //if( in_array($option->option_name, $nonbools)) die('boo'.$query);
    8989                    if (!$result) {
    90                         $db_errors .= sprintf(__(" SQL error while saving %s. "), $this_name);
     90                        $dB_errors .= sprintf(__(" SQL error while saving %s. "), $this_name);
    9191                    } else {
    9292                        ++$any_changed;
     
    103103    }
    104104   
    105     if (($dB_errors != '') || ($validation_message != '')) {
     105    if ( isset($dB_errors)  || isset($validation_message) ) {
    106106        if ($message != '') {
    107107            $message .= '<br />';
Note: See TracChangeset for help on using the changeset viewer.