Changeset 1379 for trunk/wp-admin/options.php
- Timestamp:
- 06/01/2004 10:01:15 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r1355 r1379 39 39 require_once('./optionhandler.php'); 40 40 $non_was_selected = 0; 41 if ( '' == $_GET['option_group_id']) {41 if (!isset($_GET['option_group_id'])) { 42 42 $option_group_id = 1; 43 43 $non_was_selected = 1; … … 75 75 if ($user_level >= $option->option_admin_level) { 76 76 $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]; 78 78 if (!$new_val) { 79 79 if (3 == $option->option_type) … … 88 88 //if( in_array($option->option_name, $nonbools)) die('boo'.$query); 89 89 if (!$result) { 90 $d b_errors .= sprintf(__(" SQL error while saving %s. "), $this_name);90 $dB_errors .= sprintf(__(" SQL error while saving %s. "), $this_name); 91 91 } else { 92 92 ++$any_changed; … … 103 103 } 104 104 105 if ( ($dB_errors != '') || ($validation_message != '')) {105 if ( isset($dB_errors) || isset($validation_message) ) { 106 106 if ($message != '') { 107 107 $message .= '<br />';
Note: See TracChangeset
for help on using the changeset viewer.