From f53094f3b7e1fc4dc937aaf97a5a337e772fdfc1 Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Wed, 18 Feb 2004 12:42:14 +0000 Subject: [PATCH] Fixed bug: line 67 - checks to see if both the variable exists, _and_ if it is an array. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@905 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/html.php b/admin/html.php index 947395eae78..80d6ee1c760 100644 --- a/admin/html.php +++ b/admin/html.php @@ -64,7 +64,7 @@ } 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;} + if(isset($tokenlist) && is_array($tokenlist)) {$activetokens=count($tokenlist);} else {$tokenlist=0;} $cssummary = "
\n" . "\n"