diff options
author | Andrey Andreev <narf@devilix.net> | 2014-05-27 16:30:17 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-05-27 16:30:17 +0200 |
commit | f8b6180f37841362d28e78eb25aaf38c55da0839 (patch) | |
tree | aee5a32ca617d0f00c219cc16a902521ccf84484 /system/core | |
parent | 487d1ae060e6414e0a59c9752a4914fa3b8c4710 (diff) | |
parent | 45576158ae7e2031a4c2924978f3b1f735a58af8 (diff) |
Merge pull request #3065 from dtmax/develop
fix calling of callable hooks
Diffstat (limited to 'system/core')
-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..fd1a2ba11 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])) { foreach ($this->hooks[$which] as $val) { |