Skip to content

Commit

Permalink
fixed missing $addRequest definition
Browse files Browse the repository at this point in the history
$addrequest= missed on line 239
`php
if ($addRequest = $this->addRequest($query->fetch(PDO::FETCH_ASSOC)['id'], $email, "reset")['error'] == 1)
`
but due to the way the line of the code is writen, this won't work on my server.
fixed it by defining $addRequest separatly
  • Loading branch information
mooztik committed Jun 3, 2015
1 parent 62aae2f commit cedc2fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auth.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ public function requestReset($email)
$return['message'] = $this->lang["email_incorrect"];
return $return;
}

if ($this->addRequest($query->fetch(PDO::FETCH_ASSOC)['id'], $email, "reset")['error'] == 1) {

$addRequest = $this->addRequest($query->fetch(PDO::FETCH_ASSOC)['id'], $email, "reset");
if ($addRequest['error'] == 1) {
$this->addAttempt();

$return['message'] = $addRequest['message'];
Expand Down

0 comments on commit cedc2fe

Please sign in to comment.