EllisLab/CodeIgniter — pull request #3065 by dtmax (2014-05-27 14:17:08+00:00)
Title: fix calling of callable hooks

If callable hook is defined, we have such error:
"Fatal error: Cannot use object of type Closure as array in ...system\core\Hooks.php on line 130"
because, if callable hook is function, [0] has no sense.

I propose in "call_hook" function just check, either hook is array, or not an array, and then pass data to "_run_hook", which do all other necesssary checks and run hook.