Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
rootGroup can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 22, 2015
1 parent 6c6bd0c commit 96c0ab1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1615,7 +1615,7 @@ public function switchAction($action, $httpVars, $fileVars)
print('<users total="'.$users.'"/>');
print('<shares total="'.count($shares).'"/>');
$rootGroup = AuthService::getRole("AJXP_GRP_/");
if($rootGroup->hasMask($repId)){
if($rootGroup !== false && $rootGroup->hasMask($repId)){
print("<mask><![CDATA[".json_encode($rootGroup->getMask($repId))."]]></mask>");
}
print "</additional_info>";
Expand Down

0 comments on commit 96c0ab1

Please sign in to comment.