From 6f946cae6135149136366dc9ac657c74cfaa931f Mon Sep 17 00:00:00 2001 From: structix Date: Sun, 30 Jun 2019 18:33:56 +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 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); }