From: Gunnar Wrobel
Date: Tue, 30 Nov 2010 11:51:44 +0000 (+0100) Subject: I understand it better this way. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f6dff61aa10dc8ec0d524f7f4bc2fb06707f4c07;p=horde.git I understand it better this way. --- 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) {