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

Commit 96c0ab1

Browse files
committed
rootGroup can be empty
1 parent 6c6bd0c commit 96c0ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ public function switchAction($action, $httpVars, $fileVars)
16151615
print('<users total="'.$users.'"/>');
16161616
print('<shares total="'.count($shares).'"/>');
16171617
$rootGroup = AuthService::getRole("AJXP_GRP_/");
1618-
if($rootGroup->hasMask($repId)){
1618+
if($rootGroup !== false && $rootGroup->hasMask($repId)){
16191619
print("<mask><![CDATA[".json_encode($rootGroup->getMask($repId))."]]></mask>");
16201620
}
16211621
print "</additional_info>";

0 commit comments

Comments
 (0)