From 57aa1797a4a25950c7ef6e3c79d0a94c1e9cf50b Mon Sep 17 00:00:00 2001 From: structix Date: Thu, 4 Jul 2019 09:04:59 +0200 Subject: [PATCH] Update --- cgi-bin/uebung09/questions-show.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/uebung09/questions-show.php b/cgi-bin/uebung09/questions-show.php index b5a8d59..1b6c399 100644 --- a/cgi-bin/uebung09/questions-show.php +++ b/cgi-bin/uebung09/questions-show.php @@ -27,7 +27,7 @@ foreach($questionsobj as $question) { echo(""); echo("$question->question"); - $color = ($question->solution == 0) ? "background-color: green" : "background-color: red"; + $color = ($question->solution == "0") ? "background-color: green" : "background-color: red"; echo("$question->answer0"); $color = ($question->solution == 1) ? "background-color: green" : "background-color: red";