summaryrefslogtreecommitdiffstats
path: root/lib/private/AppConfig.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-06-10 15:20:22 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-06-10 15:20:22 +0200
commitc14198b874e147c635d8f47da285dda8c99fdbb2 (patch)
tree39efb160af24c843c4e2c91d01785ed8a31ba6c7 /lib/private/AppConfig.php
parent372213b052dedf51e568c04cd9c724995b316986 (diff)
downloadnextcloud-server-c14198b874e147c635d8f47da285dda8c99fdbb2.tar.gz
nextcloud-server-c14198b874e147c635d8f47da285dda8c99fdbb2.zip
fetchall appconfig entries (#23835)
Diffstat (limited to 'lib/private/AppConfig.php')
-rw-r--r--lib/private/AppConfig.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index f84c8a41f17..4e48ee149ef 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -273,7 +273,9 @@ class AppConfig implements IAppConfig {
->from('appconfig');
$result = $sql->execute();
- while ($row = $result->fetch()) {
+ // we are going to store the result in memory anyway
+ $rows = $result->fetchAll();
+ foreach ($rows as $row) {
if (!isset($this->cache[$row['appid']])) {
$this->cache[$row['appid']] = [];
}