diff options
author | Liam Jack <cuonic@cuonic.com> | 2016-11-07 21:01:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-07 21:01:29 +0100 |
commit | 7bd19b99a767e23388dfcf47e554b9b79a810e6f (patch) | |
tree | 853848f0368289b849cd6b4665a86816d61b4240 | |
parent | b14828d41b6de8bf8383d520d88ea2a9ec691c03 (diff) | |
parent | 997512ae730650c0203b539fcb221147dbc59f7c (diff) | |
download | PHPAuth-7bd19b99a767e23388dfcf47e554b9b79a810e6f.zip PHPAuth-7bd19b99a767e23388dfcf47e554b9b79a810e6f.tar.gz PHPAuth-7bd19b99a767e23388dfcf47e554b9b79a810e6f.tar.bz2 |
Merge pull request #227 from Wardevour/master
Stop fetching request twice
-rw-r--r-- | Auth.php | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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")); |