diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-25 16:15:39 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-25 16:15:39 -0700 |
commit | 7b713e25768a36ea032b683eb1763578102166d0 (patch) | |
tree | d914b15ddc0f87d59baaf988676d61399f0b8a7a /include | |
parent | 25982f04756beef6677afbda06113f08d3521a5d (diff) | |
download | volse-hubzilla-7b713e25768a36ea032b683eb1763578102166d0.tar.gz volse-hubzilla-7b713e25768a36ea032b683eb1763578102166d0.tar.bz2 volse-hubzilla-7b713e25768a36ea032b683eb1763578102166d0.zip |
pdo - fetch assoc only
Diffstat (limited to 'include')
-rwxr-xr-x | include/dba/dba_pdo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php index 1d0b142aa..526bf765c 100755 --- a/include/dba/dba_pdo.php +++ b/include/dba/dba_pdo.php @@ -54,7 +54,7 @@ class dba_pdo extends dba_driver { $select = ((stripos($sql,'select') === 0) ? true : false); try { - $result = $this->db->query($sql); + $result = $this->db->query($sql, PDO::FETCH_ASSOC); } catch(PDOException $e) { |