From 11b8b554f175a14f679b18611fcadb75f1465bec Mon Sep 17 00:00:00 2001 From: xisi Date: Sun, 19 Jan 2014 02:07:04 -0500 Subject: [PATCH] thanks, eclipse --- public/include/classes/token.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/token.class.php b/public/include/classes/token.class.php index a1198b6d..4bcfc033 100644 --- a/public/include/classes/token.class.php +++ b/public/include/classes/token.class.php @@ -47,6 +47,7 @@ class Token Extends Base { $expiretime = $this->tokentype->getExpiration($type); $ctimedata = new DateTime($this->getCreationTime($token)); $checktime = $ctimedata->getTimestamp() + $expiretime; + $now = time(); if ($checktime >= $now && $checkTimeExplicitly || !$checkTimeExplicitly) { if ($checkTimeExplicitly) { $stmt = $this->mysqli->prepare("SELECT * FROM $this->table WHERE account_id = ? AND token = ? AND type = ? AND ? >= UNIX_TIMESTAMP() LIMIT 1");