From b272e415af17ea1371ecc449cfdceb0d549a097d Mon Sep 17 00:00:00 2001
From: Matt Mullenweg
Date: Tue, 1 Jun 2004 10:01:15 +0000
Subject: [PATCH] Some fixes from Joeseph Scott.
git-svn-id: https://develop.svn.wordpress.org/trunk@1379 602fd350-edb4-49c9-b593-d223f7449a82
---
wp-admin/categories.php | 2 +-
wp-admin/options.php | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
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 .= '
';
}