From 81792d25957f68126d53d45fca8bc15de088123a Mon Sep 17 00:00:00 2001 From: kkigomi <112419763+kkigomi@users.noreply.github.com> Date: Mon, 26 Jun 2023 22:34:49 +0900 Subject: [PATCH] =?UTF-8?q?Hook=EC=97=90=20Closure=EB=A5=BC=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=EB=84=88=EB=A1=9C=20=EB=93=B1=EB=A1=9D=ED=95=A0=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Hook/hook.extends.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Hook/hook.extends.class.php b/lib/Hook/hook.extends.class.php index bf5bc03e2..fd53543cb 100644 --- a/lib/Hook/hook.extends.class.php +++ b/lib/Hook/hook.extends.class.php @@ -19,7 +19,7 @@ Class GML_Hook extends Hook { $args = $this->getArguments($argsNumber, $args); - if (! ($class && $method) && function_exists($function)) { + if (! ($class && $method) && is_callable($function)) { return call_user_func_array($function, $args); } elseif ($obj = call_user_func(array($class, $this->singleton))) { if ($obj !== false) { @@ -161,4 +161,4 @@ Class GML_Hook extends Hook { } } -// end Hook Class; \ No newline at end of file +// end Hook Class;