Skip to content

Commit

Permalink
Merge remote-tracking branch 'simon-liu/hotfix/zf2-276'
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Apr 25, 2012
2 parents cf9ee6d + 87bada1 commit dfdba3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ class AcceptStrategy implements ListenerAggregate
public function detach(EventCollection $events)
{
foreach ($this->listeners as $index => $listener) {
if ($events->detach($listener) {
if ($events->detach($listener)) {
unset($this->listeners[$index]);
}
}
Expand Down

0 comments on commit dfdba3b

Please sign in to comment.