diff options
author | Geekologist <Conver@users.noreply.github.com> | 2015-09-17 19:18:17 +0200 |
---|---|---|
committer | Geekologist <Conver@users.noreply.github.com> | 2015-09-17 19:18:17 +0200 |
commit | 7da93cdc17e3e279f6bdb45fbab14fa047202555 (patch) | |
tree | 8ebd4fd783cfda82760c85ce49d4b7fa02040932 | |
parent | f5bc0b6dff27a2a47c058e261924febf5f948e42 (diff) | |
parent | b869ae6efae11b8a6532ceb3343802c053ff5b22 (diff) | |
download | PHPAuth-7da93cdc17e3e279f6bdb45fbab14fa047202555.zip PHPAuth-7da93cdc17e3e279f6bdb45fbab14fa047202555.tar.gz PHPAuth-7da93cdc17e3e279f6bdb45fbab14fa047202555.tar.bz2 |
Merge pull request #112 from bugada/master
Uncaught exception 'PDOException' if deleteAttempts
-rwxr-xr-x | auth.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auth.class.php b/auth.class.php index 0141481..8fdb1a8 100755 --- a/auth.class.php +++ b/auth.class.php @@ -1210,7 +1210,7 @@ class Auth /** * Deletes all attempts for a given IP from database * @param string $ip - * @param boolean $all = false + * @param boolean $all = false * @return boolean */ @@ -1231,8 +1231,8 @@ class Auth $currentdate = strtotime(date("Y-m-d H:i:s")); if($currentdate > $expiredate) { - $query = $this->dbh->prepare("DELETE FROM {$this->config->table_attempts} WHERE id = ?"); - $query->execute(array($row['id'])); + $queryDel = $this->dbh->prepare("DELETE FROM {$this->config->table_attempts} WHERE id = ?"); + $queryDel->execute(array($row['id'])); } } } |