From f6dff61aa10dc8ec0d524f7f4bc2fb06707f4c07 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Tue, 30 Nov 2010 12:51:44 +0100 Subject: [PATCH] I understand it better this way. --- framework/Token/lib/Horde/Token/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Token/lib/Horde/Token/Base.php b/framework/Token/lib/Horde/Token/Base.php index bc770440f..9cbf4334c 100644 --- a/framework/Token/lib/Horde/Token/Base.php +++ b/framework/Token/lib/Horde/Token/Base.php @@ -148,7 +148,7 @@ abstract class Horde_Token_Base if ($timeout === null) { $timeout = $this->_params['token_lifetime']; } - if ($timeout >= 0 && ($timestamp + $timeout - time()) <= 0) { + if ($timeout >= 0 && (time() - $timestamp - $timeout) >= 0) { return false; } if ($unique) { -- 2.11.0