Skip to content

Commit

Permalink
Created empty array for conditions to stop error if none found
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@931 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Feb 22, 2004
1 parent 26ee8dc commit 8085da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions admin/printablesurvey.php
Expand Up @@ -113,6 +113,7 @@
$explanation .= "if you answered ";
$conquery="SELECT cid, cqid, {$dbprefix}questions.title, {$dbprefix}questions.question, value, {$dbprefix}questions.type FROM {$dbprefix}conditions, {$dbprefix}questions WHERE {$dbprefix}conditions.cqid={$dbprefix}questions.qid AND {$dbprefix}conditions.cqid={$distinctrow['cqid']} AND {$dbprefix}conditions.qid={$deqrow['qid']}";
$conresult=mysql_query($conquery);
$conditions=array();
while ($conrow=mysql_fetch_array($conresult))
{
if ($conrow['type'] == "Y")
Expand Down

0 comments on commit 8085da3

Please sign in to comment.