0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-03-16 17:24:10 +00:00

Fix updating with apps

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-11-11 13:56:42 +01:00
parent 92d4844e0b
commit 66ffedcb16
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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);