Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix callable hooks

  • Loading branch information...
commit 50d7f701fb8ce6a59a8986c6b95b1b4912cfbe9e 1 parent 487d1ae
Max authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/core/Hooks.php
View
2  system/core/Hooks.php
@@ -127,7 +127,7 @@ public function call_hook($which = '')
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)
{
Please sign in to comment.
Something went wrong with that request. Please try again.