summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/app/appmanager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/app/appmanager.php b/lib/private/app/appmanager.php
index 8ae93f98832..4d359ff177c 100644
--- a/lib/private/app/appmanager.php
+++ b/lib/private/app/appmanager.php
@@ -147,6 +147,10 @@ class AppManager implements IAppManager {
} elseif (is_null($user)) {
return false;
} else {
+ if(empty($enabled)){
+ return false;
+ }
+
$groupIds = json_decode($enabled);
if (!is_array($groupIds)) {