summaryrefslogtreecommitdiffstats
path: root/lib/private/app
diff options
context:
space:
mode:
authorChristoph Schaefer <christophł@wolkesicher.de>2016-01-07 19:49:40 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-13 06:39:02 +0100
commit4b3bef4dc78a52bb86550c54394482f18ff84500 (patch)
treed9d598b0e0f3a7008d74948411cb51f694277c0d /lib/private/app
parenteac5d9fb3a52932fafdb200a2cf5d50fe9f1c759 (diff)
downloadnextcloud-server-4b3bef4dc78a52bb86550c54394482f18ff84500.tar.gz
nextcloud-server-4b3bef4dc78a52bb86550c54394482f18ff84500.zip
-- Fixed error where $enabled is parsed but empty
Diffstat (limited to 'lib/private/app')
-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)) {