Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Session validator listeners should strictly fail when returning false
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 16, 2014
1 parent 24416c6 commit 2c58b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Session/SessionManager.php
Expand Up @@ -332,7 +332,7 @@ public function isValid()
{
$validator = $this->getValidatorChain();
$responses = $validator->triggerUntil('session.validate', $this, array($this), function ($test) {
return !$test;
return false === $test;
});
if ($responses->stopped()) {
// If execution was halted, validation failed
Expand Down

0 comments on commit 2c58b3e

Please sign in to comment.