diff --git a/wp-admin/categories.php b/wp-admin/categories.php
index 69c842a6ee..a2991c7b86 100644
--- a/wp-admin/categories.php
+++ b/wp-admin/categories.php
@@ -183,7 +183,7 @@ set them back to the default category %s .'), get_catname(1)) ?>
-
+
diff --git a/wp-admin/options.php b/wp-admin/options.php
index 938707b350..99049fe6cc 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -38,7 +38,7 @@ for ($i=0; $i= $option->option_admin_level) {
$old_val = stripslashes($option->option_value);
- $new_val = $_POST[$option->option_name];
+ if(isset($_POST[$option->option_name])) $new_val = $_POST[$option->option_name];
if (!$new_val) {
if (3 == $option->option_type)
$new_val = '';
@@ -87,7 +87,7 @@ $nonbools = array('default_ping_status', 'default_comment_status');
$result = $wpdb->query($query);
//if( in_array($option->option_name, $nonbools)) die('boo'.$query);
if (!$result) {
- $db_errors .= sprintf(__(" SQL error while saving %s. "), $this_name);
+ $dB_errors .= sprintf(__(" SQL error while saving %s. "), $this_name);
} else {
++$any_changed;
}
@@ -102,7 +102,7 @@ $nonbools = array('default_ping_status', 'default_comment_status');
$message = sprintf(__('%d setting(s) saved... '), $any_changed);
}
- if (($dB_errors != '') || ($validation_message != '')) {
+ if ( isset($dB_errors) || isset($validation_message) ) {
if ($message != '') {
$message .= ' ';
}