Skip to content

Commit

Permalink
Fixed bug - checks existence of $bgc before testing its value.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@935 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Feb 24, 2004
1 parent d81c0f9 commit 2343d21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/printablesurvey.php
Expand Up @@ -96,9 +96,8 @@
echo "\t</tr>\n";
$gid = $degrow['gid'];
//Alternate bgcolor for different groups
if ($bgc == "#EEEEEE") {$bgc = "#DDDDDD";}
if (!isset($bgc) || $bgc == "#EEEEEE") {$bgc = "#DDDDDD";}
else {$bgc = "#EEEEEE";}
if (!$bgc) {$bgc = "#EEEEEE";}

foreach ($deqrows as $deqrow)
{
Expand Down

0 comments on commit 2343d21

Please sign in to comment.