summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Psecio/Gatekeeper/GroupModel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Psecio/Gatekeeper/GroupModel.php b/src/Psecio/Gatekeeper/GroupModel.php
index 7b3013e..3364339 100644
--- a/src/Psecio/Gatekeeper/GroupModel.php
+++ b/src/Psecio/Gatekeeper/GroupModel.php
@@ -228,6 +228,6 @@ class GroupModel extends \Psecio\Gatekeeper\Model\Mysql
*/
public function isExpired()
{
- return (is_null($this->expire) || (!is_null($this->expire) && $this->expire >= time()));
+ return ($this->expire !== null && $this->expire <= time());
}
} \ No newline at end of file