From a8c19cbff2f193984eb1c42b25fc9cf1db85216a Mon Sep 17 00:00:00 2001 From: structix Date: Sun, 30 Jun 2019 20:37:18 +0200 Subject: [PATCH] Update --- 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 44ceca1..98eee4b 100644 --- a/cgi-bin/uebung08/hangman_lib.php +++ b/cgi-bin/uebung08/hangman_lib.php @@ -61,7 +61,7 @@ function guessLetter($letter) { } //Append the guessed letter - $_SESSION['guessedLetters'][] = $letter; + array_push($_SESSION['guessedLetters'], $letter); //Add the letter to the mask $guessword = str_split($_SESSION['toGuess']);