From 7e0218e79f0fc50aa8f4e5c1a53f1ffcc2c301c3 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 8 Mar 2011 10:43:48 +0000 Subject: [PATCH] MDL-26724 notice from numerical qtype when no answer is given. --- question/type/numerical/display.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/type/numerical/display.html b/question/type/numerical/display.html index 12d678d507e..b8b9704e904 100644 --- a/question/type/numerical/display.html +++ b/question/type/numerical/display.html @@ -63,9 +63,9 @@ ?> size=""/> responses['unit'] != '') echo $feedbackimgunit; if ($options->feedback && $question->options->unitgradingtype == 1 && ! $valid_numerical_unit && ! $answerasterisk ){ - if ( $empty_unit) { + if (!empty($empty_unit)) { print_string('unitmandatory', 'qtype_numerical'); - }else { + } else { if(isset($question->options->units) && count($question->options->units) > 0){ $found = 0 ; $valid_unit_found = 0 ;