diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-08-13 16:55:27 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-08-13 17:35:40 +0100 |
| commit | 07128fd837dd5f87a960ea66f5dd86a9b856c60e (patch) | |
| tree | b6128ed0d43b4bc28fe39cf475d9a17ac941d4a2 /app/Statement.php | |
| parent | 2d980a950eede9f00c2f737c1e16abf2cd2b54d6 (diff) | |
| download | webtrees-07128fd837dd5f87a960ea66f5dd86a9b856c60e.tar.gz webtrees-07128fd837dd5f87a960ea66f5dd86a9b856c60e.tar.bz2 webtrees-07128fd837dd5f87a960ea66f5dd86a9b856c60e.zip | |
Do not use PDO::FETCH_ASSOC
Diffstat (limited to 'app/Statement.php')
| -rw-r--r-- | app/Statement.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Statement.php b/app/Statement.php index 8b3f8ebe1c..5149843b88 100644 --- a/app/Statement.php +++ b/app/Statement.php @@ -125,15 +125,15 @@ class Statement * * @param int $fetch_style * - * @return stdClass[]|string[][] + * @return stdClass[] */ - public function fetchAll($fetch_style = PDO::FETCH_OBJ) + public function fetchAll() { if (!$this->executed) { $this->execute(); } - $rows = $this->pdo_statement->fetchAll($fetch_style); + $rows = $this->pdo_statement->fetchAll(PDO::FETCH_OBJ); $this->closeCursor(); return $rows; |
