diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appconfig.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/appconfig.php b/lib/private/appconfig.php index b9b5dacb168..7ee64980fd0 100644 --- a/lib/private/appconfig.php +++ b/lib/private/appconfig.php @@ -161,6 +161,10 @@ class AppConfig implements IAppConfig { ]); if ($inserted) { + if (!isset($this->cache[$app])) { + $this->cache[$app] = []; + } + $this->cache[$app][$key] = $value; return true; } @@ -264,6 +268,10 @@ class AppConfig implements IAppConfig { $result = $sql->execute(); while ($row = $result->fetch()) { + if (!isset($this->cache[$row['appid']])) { + $this->cache[$row['appid']] = []; + } + $this->cache[$row['appid']][$row['configkey']] = $row['configvalue']; } $result->closeCursor(); |