Skip to content

Commit

Permalink
Cleaned up PHP $sid, $_GET['sid'], $_POST['sid']
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@150 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Mar 25, 2003
1 parent 47195f9 commit 9b2f623
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions admin/statistics.php
Expand Up @@ -34,7 +34,7 @@
#############################################################
*/

$sid = $_GET['sid'];
$sid = $_GET['sid']; if (!$sid) {$sid = $_POST['sid'];}

include("config.php");

Expand All @@ -50,16 +50,13 @@

echo $htmlheader;

if (!$_GET['sid'] && !$_GET['sid'])
if (!$sid)
{
//need to have a survey id
echo "<center>You have not selected a survey!</center>";
exit;
}

if ($_GET['sid']) {$sid=$_GET['sid'];}
elseif ($_POST['sid']) {$sid=$_POST['sid'];}

echo "<table width='100%' border='0' bgcolor='#555555'><tr><td align='center'><font color='white'><b>Quick Statistics</b></td></tr></table>\n";
echo $surveyoptions;
echo "<br />\n";
Expand Down

0 comments on commit 9b2f623

Please sign in to comment.