summaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index 9c9da1f50c0..a8711944341 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -427,7 +427,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);