aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-11 13:56:42 +0100
committerJoas Schilling <coding@schilljs.com>2021-11-11 13:56:42 +0100
commit66ffedcb1662088007711d132df7a630a313c572 (patch)
treede9e6f917cfea96bb734764986d7732ff7f5989f /lib
parent92d4844e0b0ff09bf22ef738d452beb0e63d63eb (diff)
downloadnextcloud-server-66ffedcb1662088007711d132df7a630a313c572.tar.gz
nextcloud-server-66ffedcb1662088007711d132df7a630a313c572.zip
Fix updating with apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/App/AppManager.php2
-rw-r--r--lib/private/Updater.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php
index b1f3097cc3d..f154bd854ad 100644
--- a/lib/private/App/AppManager.php
+++ b/lib/private/App/AppManager.php
@@ -195,7 +195,7 @@ class AppManager implements IAppManager {
if ($values[$appId] === 'yes' || $values[$appId] === 'no') {
return [];
}
- return json_decode($values[$appId]);
+ return json_decode($values[$appId], true);
}
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 2c5820fdd8b..8f21e091650 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -418,7 +418,7 @@ class Updater extends BasicEmitter {
if (!empty($previousEnableStates)) {
$ocApp = new \OC_App();
- if (!empty($previousEnableStates[$app])) {
+ if (!empty($previousEnableStates[$app]) && is_array($previousEnableStates[$app])) {
$ocApp->enable($app, $previousEnableStates[$app]);
} else {
$ocApp->enable($app);