Commit 6770295a authored by jwage's avatar jwage

[2.0] Fixing hasListeners() to not use empty()

parent 3ba3c67f
......@@ -80,7 +80,7 @@ class EventManager
*/
public function hasListeners($event)
{
return isset($this->_listeners[$event]) && ! empty($this->_listeners[$event]);
return isset($this->_listeners[$event]) && $this->_listeners[$event];
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment