From: pilpi Date: Sat, 22 Nov 2008 17:30:12 +0000 (+0000) Subject: quiz editing: MDL-17293 Added a default value to avoid error messages X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4070210d93d63ef3771005cd4ec5836ce0b69133;p=moodle.git quiz editing: MDL-17293 Added a default value to avoid error messages Added a default value to the function that passes a page number to avoid error messages. --- diff --git a/question/category_class.php b/question/category_class.php index 2c94c77378..4c8fed8eca 100644 --- a/question/category_class.php +++ b/question/category_class.php @@ -228,7 +228,7 @@ class question_category_object { * Displays the user interface * */ - function display_randomquestion_user_interface($addonpage) { + function display_randomquestion_user_interface($addonpage=0) { $this->catform_rand->set_data(array('addonpage'=>$addonpage)); /// Interface for adding a new category: $this->output_new_randomquestion_table();