From 15be5f93a5d6ae1d9dcca833f7be0e150d354561 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Fri, 4 Apr 2003 04:18:33 +0000 Subject: [PATCH] Fixed bug with "clearall" where $_SESSION['sid'] was causing an error. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@189 b72ed6b6-b9f8-46b5-92b4-906544132732 --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 007dcad137c..bd60c042e10 100644 --- a/index.php +++ b/index.php @@ -144,7 +144,7 @@ } // NOW LETS GATHER SOME INFORMATION ABOUT THIS PARTICULAR SURVEY (This happens on every page) -if ($sid) +if ($sid && $move != "clearall") { $desquery = "SELECT * FROM surveys WHERE sid=$sid"; $desresult = mysql_query($desquery) or die ("Couldn't get survey with sid of $sid
$desquery
".mysql_error()); @@ -203,7 +203,7 @@ $_SESSION['token'] = ""; echo "
\n 
\n"; echo "
All data has been deleted.
\n 
\n"; - echo "Close
\n
\n $sid
\n"; + echo "Close
\n
\n \n"; echo "\n"; exit; }