From 4070210d93d63ef3771005cd4ec5836ce0b69133 Mon Sep 17 00:00:00 2001 From: pilpi Date: Sat, 22 Nov 2008 17:30:12 +0000 Subject: [PATCH] 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. --- question/category_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5