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");