From: jamiesensei Date: Mon, 27 Nov 2006 09:02:35 +0000 (+0000) Subject: added check to see if at least two choices have been entered when setting up or updat... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=49eacbe3284f5b00d8ec8231632543154ab9ff57;p=moodle.git added check to see if at least two choices have been entered when setting up or updating a choice activity. --- diff --git a/lang/en_utf8/choice.php b/lang/en_utf8/choice.php index 4451e9c043..ea8a47106b 100644 --- a/lang/en_utf8/choice.php +++ b/lang/en_utf8/choice.php @@ -1,4 +1,4 @@ -1){ + return true; + } elseif ($choices==0) { + return array('option[0]'=>get_string('fillinatleastoneoption', 'choice')); + } else { + return array('option[1]'=>get_string('fillinatleastoneoption', 'choice')); + } + + + } + } ?> \ No newline at end of file