Browse Source

Fix updating with apps

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v24.0.0beta1
Joas Schilling 2 years ago
parent
commit
66ffedcb16
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lib/private/App/AppManager.php
  2. 1
    1
      lib/private/Updater.php

+ 1
- 1
lib/private/App/AppManager.php 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);
}



+ 1
- 1
lib/private/Updater.php 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);

Loading…
Cancel
Save