aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/appconfig.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/appconfig.php b/lib/private/appconfig.php
index cfb2addc4c3..f20c4a08426 100644
--- a/lib/private/appconfig.php
+++ b/lib/private/appconfig.php
@@ -196,7 +196,7 @@ class AppConfig implements \OCP\IAppConfig {
$this->cache[$app] = array();
}
if (is_array($this->apps) and array_search($app, $this->apps) === false) {
- $this->apps[] = $app;
+ $this->apps[$app] = $app;
}
$this->cache[$app][$key] = $value;
}
@@ -233,9 +233,7 @@ class AppConfig implements \OCP\IAppConfig {
);
$this->conn->delete('*PREFIX*appconfig', $where);
unset($this->cache[$app]);
- if (is_array($this->apps) and $i = array_search($app, $this->apps) !== false) {
- unset($this->apps[$i]);
- }
+ unset($this->apps[$app]);
}
/**