Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request joomla#720 from robschley/event
Small Improvement to JDispatcher
  • Loading branch information
LouisLandry committed Jan 7, 2012
2 parents 39bf8f9 + 9ee21b7 commit 3a94e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/joomla/event/dispatcher.php
Expand Up @@ -97,8 +97,8 @@ public function getState()
*/
public function register($event, $handler)
{
// Are we dealing with a class or function type handler?
if (function_exists($handler))
// Are we dealing with a class or callback type handler?
if (is_callable($handler))
{
// Ok, function type event handler... let's attach it.
$method = array('event' => $event, 'handler' => $handler);
Expand Down

0 comments on commit 3a94e57

Please sign in to comment.