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";