]> git.mjollnir.org Git - moodle.git/commitdiff
quiz editing: MDL-17293 Added a default value to avoid error messages
authorpilpi <pilpi>
Sat, 22 Nov 2008 17:30:12 +0000 (17:30 +0000)
committerpilpi <pilpi>
Sat, 22 Nov 2008 17:30:12 +0000 (17:30 +0000)
Added a default value  to the function that passes a page number to avoid error messages.

question/category_class.php

index 2c94c77378f5354524eea974fe34fb2892717757..4c8fed8eca7a02dd811b49a9f30404655610a2cf 100644 (file)
@@ -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();