Merge pull request #21673 from owncloud/chrsch-master
-- Fixed error where $enabled is parsed but empty
This commit is contained in:
commit
e22186d234
|
@ -148,6 +148,10 @@ class AppManager implements IAppManager {
|
||||||
} elseif (is_null($user)) {
|
} elseif (is_null($user)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
if(empty($enabled)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$groupIds = json_decode($enabled);
|
$groupIds = json_decode($enabled);
|
||||||
|
|
||||||
if (!is_array($groupIds)) {
|
if (!is_array($groupIds)) {
|
||||||
|
|
Loading…
Reference in New Issue