Merge branch 'master' of github.com:gnuboard/gnuboard5
This commit is contained in:
@ -19,7 +19,7 @@ Class GML_Hook extends Hook {
|
|||||||
|
|
||||||
$args = $this->getArguments($argsNumber, $args);
|
$args = $this->getArguments($argsNumber, $args);
|
||||||
|
|
||||||
if (! ($class && $method) && function_exists($function)) {
|
if (! ($class && $method) && is_callable($function)) {
|
||||||
return call_user_func_array($function, $args);
|
return call_user_func_array($function, $args);
|
||||||
} elseif ($obj = call_user_func(array($class, $this->singleton))) {
|
} elseif ($obj = call_user_func(array($class, $this->singleton))) {
|
||||||
if ($obj !== false) {
|
if ($obj !== false) {
|
||||||
@ -161,4 +161,4 @@ Class GML_Hook extends Hook {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// end Hook Class;
|
// end Hook Class;
|
||||||
|
|||||||
Reference in New Issue
Block a user