Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Fixed fetchall
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dickenson committed Mar 9, 2015
1 parent 400d771 commit 364ae8b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions includes/class_db_handle.php
Expand Up @@ -122,10 +122,7 @@ public function fetchall($method = 'FETCH_ASSOC')
if ($method == 'FETCH_BOTH') $result = $this->fetchquery->fetchAll(PDO::FETCH_BOTH);
if ($method == 'FETCH_NUM') $result = $this->fetchquery->fetchAll(PDO::FETCH_NUM);
// clear fetch query
if ($result == false)
{
$this->fetchquery = NULL;
}
$this->fetchquery = NULL;
return $result;
}
catch(PDOException $e) {
Expand Down

0 comments on commit 364ae8b

Please sign in to comment.