Skip to content

Commit

Permalink
Fixed bug with "clearall" where $_SESSION['sid'] was causing an error.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@189 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 4, 2003
1 parent 84ff2a9 commit 15be5f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Expand Up @@ -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<br />$desquery<br />".mysql_error());
Expand Down Expand Up @@ -203,7 +203,7 @@
$_SESSION['token'] = "";
echo "<br />\n&nbsp;<br />\n";
echo "<center>All data has been deleted.<br />\n&nbsp;<br />\n";
echo "<a href='javascript:window.close()'>Close</a><br />\n<br />\n&nbsp;$sid</center>\n";
echo "<a href='javascript:window.close()'>Close</a><br />\n<br />\n&nbsp;</center>\n";
echo "</body>\n</html>";
exit;
}
Expand Down

0 comments on commit 15be5f9

Please sign in to comment.