Skip to content

Commit

Permalink
[event dispatcher] - use strict comparison (#19907)
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored and Michael Babker committed Mar 25, 2018
1 parent 7fcc0e2 commit 116138f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/event/dispatcher.php
Expand Up @@ -195,7 +195,7 @@ public function attach($observer)
// Make sure we haven't already attached this array as an observer
foreach ($this->_observers as $check)
{
if (is_array($check) && $check['event'] == $observer['event'] && $check['handler'] == $observer['handler'])
if (is_array($check) && $check['event'] === $observer['event'] && $check['handler'] === $observer['handler'])
{
return;
}
Expand Down

0 comments on commit 116138f

Please sign in to comment.