diff options
Diffstat (limited to 'includes/database/prefetch.inc')
-rw-r--r-- | includes/database/prefetch.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/database/prefetch.inc b/includes/database/prefetch.inc index 9edb0309d..a81ea10f1 100644 --- a/includes/database/prefetch.inc +++ b/includes/database/prefetch.inc @@ -475,8 +475,8 @@ class DatabaseStatementPrefetch implements Iterator, DatabaseStatementInterface return $result; } - public function fetchAllAssoc($key, $fetch_style = PDO::FETCH_OBJ) { - $this->fetchStyle = $fetch_style; + public function fetchAllAssoc($key, $fetch_style = NULL) { + $this->fetchStyle = isset($fetch_style) ? $fetch_style : $this->defaultFetchStyle; $this->fetchOptions = $this->defaultFetchOptions; $result = array(); |