From 61b13875af04e3bf91d7814a66bc0241509c8d46 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sat, 24 May 2003 09:19:03 +0000 Subject: [PATCH] Fix for update bug. AutoBR no longer set. git-svn-id: http://svn.automattic.com/wordpress/trunk@78 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/b2options.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/b2options.php b/wp-admin/b2options.php index b2951681d..7f8e0521c 100644 --- a/wp-admin/b2options.php +++ b/wp-admin/b2options.php @@ -45,14 +45,15 @@ case "update": $newwhat_to_show=addslashes($HTTP_POST_VARS["newwhat_to_show"]); $newarchive_mode=addslashes($HTTP_POST_VARS["newarchive_mode"]); $newtime_difference=addslashes($HTTP_POST_VARS["newtime_difference"]); - $newautobr=addslashes($HTTP_POST_VARS["newautobr"]); + //no longer use this? $newautobr=addslashes($HTTP_POST_VARS["newautobr"]); + $newautobr = 0; $newtime_format=addslashes($HTTP_POST_VARS["newtime_format"]); $newdate_format=addslashes($HTTP_POST_VARS["newdate_format"]); $query = "UPDATE $tablesettings SET posts_per_page=$newposts_per_page, what_to_show='$newwhat_to_show', archive_mode='$newarchive_mode', time_difference=$newtime_difference, AutoBR=$newautobr, time_format='$newtime_format', date_format='$newdate_format' WHERE ID = 1"; $result = mysql_query($query); if ($result==false) { - $oops = "ERROR: couldn't update the options... please contact the webmaster !

".mysql_errno().": ".mysql_error(); + $oops = "ERROR: couldn't update the options... please contact the webmaster !
$query
".mysql_errno().": ".mysql_error(); die ($oops); }