From 21656ff7277f31a74afbe375770bcdcc3bae6f38 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Sat, 24 May 2003 09:19:03 +0000 Subject: [PATCH] Fix for update bug. AutoBR no longer set. git-svn-id: https://develop.svn.wordpress.org/trunk@78 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 b2951681d6..7f8e0521c6 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); }