From f9af01caf8e32f25de1f29a18332e147b64a7633 Mon Sep 17 00:00:00 2001 From: structix Date: Sun, 30 Jun 2019 20:15:15 +0200 Subject: [PATCH] Fix --- cgi-bin/uebung08/hangman_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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