]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-20346, fixed incorrect parameter type"
authordongsheng <dongsheng>
Thu, 8 Oct 2009 06:52:30 +0000 (06:52 +0000)
committerdongsheng <dongsheng>
Thu, 8 Oct 2009 06:52:30 +0000 (06:52 +0000)
lib/moodlelib.php

index 210b71cf2b23f15e7c0292fa6211106438e5ee34..ec7d498b571a36f3b0171128c7e55b7da6dada42 100644 (file)
@@ -7060,7 +7060,7 @@ function plugin_callback($type, $name, $feature, $action, $options = null, $defa
     }
     if (is_array($function) || function_exists($function)) {
         // Function exists, so just return function result
-        $ret = call_user_func_array($function, $options);
+        $ret = call_user_func_array($function, (array)$options);
         if (is_null($ret)) {
             return $default;
         } else {