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']);