Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 543)
+++ trunk/CHANGELOG	(revision 544)
@@ -12,10 +12,12 @@
 
 ------------------------------------- 2.7.0 -------------------------------------
 16-Jan-2008 Thomas Hornik
-! changed module menu_link: added table mod_menu_link, fixed page-deleting-bug,
+!	changed admin/pages/save.php to allow hidden config-elements in table search.
+16-Jan-2008 Thomas Hornik
+!	changed module menu_link: added table mod_menu_link, fixed page-deleting-bug,
 	fixed odd behavior in case of menu_link as default-page.
 16-Jan-2008 Thomas Hornik
-# changing PHP-error-level within website baker does not work - fixed (fixed ticket 532)
+#	changing PHP-error-level within website baker does not work - fixed (fixed ticket 532)
 14-Jan-2008 Matthias Gallas
 #	Replaced hardcoded .php with the variable PAGE_EXTENSION for the use in pagenames.
 	(!!Attention!! To get extenions other than .php working additional fixes are necessary!)
Index: trunk/wb/admin/settings/save.php
===================================================================
--- trunk/wb/admin/settings/save.php	(revision 543)
+++ trunk/wb/admin/settings/save.php	(revision 544)
@@ -143,12 +143,16 @@
 }
 
 // Query current search settings in the db, then loop through them and update the db with the new value
-$query = "SELECT name FROM ".TABLE_PREFIX."search WHERE extra = ''";
+$query = "SELECT name, value FROM ".TABLE_PREFIX."search WHERE extra = ''";
 $results = $database->query($query);
 while($search_setting = $results->fetchRow()) {
+	$old_value = $search_setting['value'];
 	$setting_name = $search_setting['name'];
 	$post_name = 'search_'.$search_setting['name'];
-	$value = $admin->get_post($post_name);
+	if($admin->get_post($post_name) == '')
+		$value = $old_value;
+	else
+		$value = $admin->get_post($post_name);
 	$value = $admin->add_slashes($value);
 	$database->query("UPDATE ".TABLE_PREFIX."search SET value = '$value' WHERE name = '$setting_name'");
 }
@@ -163,4 +167,4 @@
 $admin->print_success($MESSAGE['SETTINGS']['SAVED'], ADMIN_URL.'/settings/index.php'.$advanced);
 $admin->print_footer();
 
-?>
\ No newline at end of file
+?>
