From d7d2f1cbb2df542ab3912333ed4ad32653aac702 Mon Sep 17 00:00:00 2001 From: structix Date: Sun, 30 Jun 2019 13:42:39 +0200 Subject: [PATCH] Cast to array --- cgi-bin/uebung08/list-words.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/uebung08/list-words.php b/cgi-bin/uebung08/list-words.php index 4a0654c..974e77e 100644 --- a/cgi-bin/uebung08/list-words.php +++ b/cgi-bin/uebung08/list-words.php @@ -14,7 +14,7 @@ echo << END; -foreach ($arr as $a) { +foreach ((array)$arr as $a) { $transformed = transformWord($a); $mask = maskWord($a); echo <<