Skip to content

Commit

Permalink
[event dispatcher] - use strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored Mar 14, 2018
1 parent 23d2b43 commit 9357e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/event/dispatcher.php
Original file line number Diff line number Diff line change
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 9357e74

Please sign in to comment.