Skip to content

Commit

Permalink
Bugfix: The $totaland setting in checkgroupfordisplay() was not reset…
Browse files Browse the repository at this point in the history
…ting between questions causing false positives and groups displaying when they shouldn't. This fixes the error by resetting the value at the beginning of each question.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1118 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 11, 2004
1 parent 5155fd8 commit 33a4c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -505,9 +505,9 @@ function checkgroupfordisplay($gid)
//check every question, to see if the condition for each has been met.
//If 1 or more have their conditions met, then the group should
//be displayed.
$totalands=0;
foreach ($checkConditions as $cc)
{
$totalands=0;
$query = "SELECT * FROM {$dbprefix}conditions\n"
."WHERE qid=$cc[0] ORDER BY cqid";
$result = mysql_query($query) or die("Couldn't check conditions<br />$query<br />".mysql_error());
Expand Down

0 comments on commit 33a4c92

Please sign in to comment.