From b9729ad763d77e7611556b9cc2c00256cdeaca70 Mon Sep 17 00:00:00 2001 From: tobi132 Date: Tue, 3 Dec 2019 00:48:29 +0100 Subject: [PATCH] Fixed undefined $ret --- system/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/hooks.php b/system/hooks.php index 923cbc9c..9e422eed 100644 --- a/system/hooks.php +++ b/system/hooks.php @@ -50,7 +50,7 @@ class Hook $ret = require BASE . $this->_file; } - return $ret === null || $ret == 1 || $ret; + return !isset($ret) || $ret == 1 || $ret; } public function name() {return $this->_name;}