diff --git a/cgi-bin/uebung08/hangman_lib.php b/cgi-bin/uebung08/hangman_lib.php index 31e41fc..44ceca1 100644 --- a/cgi-bin/uebung08/hangman_lib.php +++ b/cgi-bin/uebung08/hangman_lib.php @@ -77,7 +77,7 @@ function guessLetter($letter) { //if the guessword doesn't contain the letter increment errorCount if (!$wordcontainsletter) { - $_SESSION['errorCount'] += 1; + $_SESSION['errorCount'] = $_SESSION['errorCount'] + 1; } //refresh the state