Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug - check database section - was causing "notice" error when …
…no deactivated surveys, tokens tables existed.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@903 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Feb 17, 2004
1 parent fe1fe6f commit 60bd4c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/html.php
Expand Up @@ -62,9 +62,9 @@
$oldresultslist[]=$row[0];
}
}
$deactivatedsurveys=count($oldresultslist);
$deactivatedtokens=count($oldtokenlist);
$activetokens=count($tokenlist);
if(is_array($oldresultslist)) {$deactivatedsurveys=count($oldresultslist);} else {$deactivatedsurveys=0;}
if(is_array($oldtokenlist)) {$deactivatedtokens=count($oldtokenlist);} else {$deactivatedtokens=0;}
if(is_array($tokenlist)) {$activetokens=count($tokenlist);} else {$tokenlist=0;}
$cssummary = "<table><tr><td height='1'></td></tr></table>\n"
. "<table align='center' bgcolor='#DDDDDD' style='border: 1px solid #555555' "
. "cellpadding='1' cellspacing='0'>\n"
Expand Down

0 comments on commit 60bd4c9

Please sign in to comment.