summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2021-11-11 15:35:57 +0100
committerGitHub <noreply@github.com>2021-11-11 15:35:57 +0100
commit9b35c8f41cc5df840ecbe28139791a29d55dee53 (patch)
tree19a51c96558759c3d30c21a11aec121b49d763c9
parente7dcfdaa48d76b14143cddd02c211046b26d3c68 (diff)
parentef48e7045e6bccd65c8cf377dcbd7b16e1337241 (diff)
downloadnextcloud-server-9b35c8f41cc5df840ecbe28139791a29d55dee53.tar.gz
nextcloud-server-9b35c8f41cc5df840ecbe28139791a29d55dee53.zip
Merge pull request #29667 from nextcloud/backport/29664/stable22
[stable22] Fix updating with apps
-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 7d98abd934a..9b7a53a6e62 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -432,7 +432,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);