From 50d7f701fb8ce6a59a8986c6b95b1b4912cfbe9e Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 27 May 2014 15:50:08 +0200 Subject: fix callable hooks --- system/core/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core/Hooks.php') diff --git a/system/core/Hooks.php b/system/core/Hooks.php index 767dc4cd9..fde43d0a5 100644 --- a/system/core/Hooks.php +++ b/system/core/Hooks.php @@ -127,7 +127,7 @@ class CI_Hooks { return FALSE; } - if (isset($this->hooks[$which][0]) && is_array($this->hooks[$which][0])) + if (is_array($this->hooks[$which]) && isset($this->hooks[$which][0]) && is_array($this->hooks[$which][0])) { foreach ($this->hooks[$which] as $val) { -- cgit v1.2.3-24-g4f1b