mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
"MDL-20346, fixed incorrect parameter type"
This commit is contained in:
parent
c61274bfc1
commit
04a645027c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user