From 58afbca17fe86d385578981be79b678c814b6c1b Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Tue, 16 Jun 2020 21:30:46 +0700 Subject: [PATCH] Small Bug Fixes --- engine/kernel/hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/kernel/hook.php b/engine/kernel/hook.php index 2ab57937..bfd269c5 100644 --- a/engine/kernel/hook.php +++ b/engine/kernel/hook.php @@ -85,7 +85,7 @@ public static function set($id = null, callable $fn, float $stack = 10) { self::set((string) $v, $fn, $stack); } } else { - if (is_string($fn) && !empty(self::$lot[0][$c][$id][$fn]) || !empty(self::$lot[0][$c][$id])) { + if (is_string($fn) && !empty(self::$lot[0][$c][$id][$fn])) { // Skip! } else { if (!isset(self::$lot[1][$c][$id])) {