Skip to content

Commit

Permalink
Bugfix: Check for private/non-private survey was marking all surveys …
Browse files Browse the repository at this point in the history
…as non-private and forcing creation of tokens table. Bug corrected.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@201 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 9, 2003
1 parent 0098c34 commit 50f7cc5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions admin/activate.php
Expand Up @@ -136,8 +136,11 @@
$presult=mysql_query($pquery);
while($prow=mysql_fetch_array($presult))
{
if ($prow['private'] == "N") {$createsurvey .= " token VARCHAR(10),\n";}
$surveynotprivate="TRUE";
if ($prow['private'] == "N")
{
$createsurvey .= " token VARCHAR(10),\n";
$surveynotprivate="TRUE";
}
}
$aquery = "SELECT * FROM questions, groups WHERE questions.gid=groups.gid AND questions.sid={$_GET['sid']} ORDER BY group_name, title";
$aresult = mysql_query($aquery);
Expand Down

0 comments on commit 50f7cc5

Please sign in to comment.