summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Jack <cuonic@cuonic.com>2016-11-07 21:01:29 +0100
committerGitHub <noreply@github.com>2016-11-07 21:01:29 +0100
commit7bd19b99a767e23388dfcf47e554b9b79a810e6f (patch)
tree853848f0368289b849cd6b4665a86816d61b4240
parentb14828d41b6de8bf8383d520d88ea2a9ec691c03 (diff)
parent997512ae730650c0203b539fcb221147dbc59f7c (diff)
downloadPHPAuth-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.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"));