Skip to content

Commit

Permalink
Tweak - check existence of $notanswered array before counting
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@990 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Apr 20, 2004
1 parent 97a23e2 commit 7f66ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question.php
Expand Up @@ -149,7 +149,7 @@
}
if (isset($_POST[$multiname]) && $_POST[$multiname])
{
if (count($notanswered) == count($chkcmands)) //
if (isset($notanswered) && count($notanswered) == count($chkcmands)) //
{
//The number of questions not answered is equal to the number of questions
if (isset($_POST['move']) && $_POST['move'] == " << "._PREV." ") {$_SESSION['step'] = $_POST['thisstep'];}
Expand Down

0 comments on commit 7f66ae6

Please sign in to comment.