mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR Ensuring valid return values in Subsite::accessible_sites() (AIR-48)
This commit is contained in:
parent
9433a097ac
commit
01435e0de5
@ -460,6 +460,7 @@ JS;
|
||||
ON \"Group\".\"ID\"=\"Permission\".\"GroupID\"
|
||||
AND \"Permission\".\"Code\" IN ($SQL_codes, 'ADMIN')"
|
||||
);
|
||||
if(!$subsites) $subsites = new DataObjectSet();
|
||||
|
||||
$rolesSubsites = DataObject::get(
|
||||
'Subsite',
|
||||
|
Loading…
Reference in New Issue
Block a user