From 4b3bef4dc78a52bb86550c54394482f18ff84500 Mon Sep 17 00:00:00 2001
From: Christoph Schaefer <christophł@wolkesicher.de>
Date: Thu, 7 Jan 2016 19:49:40 +0100
Subject: -- Fixed error where $enabled is parsed but empty

---
 lib/private/app/appmanager.php | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'lib/private/app/appmanager.php')

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)) {
-- 
cgit v1.2.3