summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/Auth.php b/Auth.php
index 50ff497..b485c9d 100644
--- a/Auth.php
+++ b/Auth.php
@@ -300,7 +300,7 @@ class Auth
return $return;
}
- $addRequest = $this->addRequest($query->fetch(\PDO::FETCH_ASSOC)['id'], $email, "reset", $sendmail);
+ $addRequest = $this->addRequest($row['id'], $email, "reset", $sendmail);
if ($addRequest['error'] == 1) {
$this->addAttempt();
@@ -849,8 +849,6 @@ class Auth
return $return;
}
- $row = $query->fetch();
-
$expiredate = strtotime($row['expire']);
$currentdate = strtotime(date("Y-m-d H:i:s"));