benedmunds/CodeIgniter-Ion-Auth — pull request #149 by axelay (2012-01-02 15:48:49+00:00)
Title: changed the hook declaration and usage

Finally worked out how to use the hooks and it is awesome :)
However the way it was declared made the hooks array look odd.
For example this line $this->_ion_hooks->$event[$name] = new stdClass; with $event = 'post_login_successful' and $name = 'log_ip' made the $_ion_hooks variable to hold 1 element named 'p'. The logic behind this was that $event[$name] would be treated as "the first character of the string post_login_successful"
At least this fix worked for me