diff --git a/cgi-bin/uebung08/hangman_lib.php b/cgi-bin/uebung08/hangman_lib.php index c6b3f92..b04fcbc 100644 --- a/cgi-bin/uebung08/hangman_lib.php +++ b/cgi-bin/uebung08/hangman_lib.php @@ -40,7 +40,7 @@ function maskWord($word) { } function getAllWords() { - return file_get_contents("words-array.php"); + return json_decode(file_get_contents("words-array.php"), true); }