diff options
author | Max <max@supportex.net> | 2014-05-27 15:50:08 +0200 |
---|---|---|
committer | Max <max@supportex.net> | 2014-05-27 15:50:08 +0200 |
commit | 50d7f701fb8ce6a59a8986c6b95b1b4912cfbe9e (patch) | |
tree | 56cd593929e6f349a225a189bc09a873956a74e1 | |
parent | 487d1ae060e6414e0a59c9752a4914fa3b8c4710 (diff) |
fix callable hooks
-rw-r--r-- | system/core/Hooks.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |