From 04a645027cb9f30744b10d757cab335c44ebb22c Mon Sep 17 00:00:00 2001 From: dongsheng Date: Thu, 8 Oct 2009 06:52:30 +0000 Subject: [PATCH] "MDL-20346, fixed incorrect parameter type" --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 210b71cf2b..ec7d498b57 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -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 { -- 2.39.5