Fix updating with apps

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/29669/head
Joas Schilling 3 years ago committed by backportbot[bot]
parent f77bd4360c
commit b89e548879

@ -204,7 +204,7 @@ class AppManager implements IAppManager {
if ($values[$appId] === 'yes' || $values[$appId] === 'no') {
return [];
}
return json_decode($values[$appId]);
return json_decode($values[$appId], true);
}

@ -466,7 +466,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);

Loading…
Cancel
Save