From 49eacbe3284f5b00d8ec8231632543154ab9ff57 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 27 Nov 2006 09:02:35 +0000 Subject: [PATCH] added check to see if at least two choices have been entered when setting up or updating a choice activity. --- lang/en_utf8/choice.php | 3 ++- mod/choice/mod_form.php | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) 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 -- 2.39.5