MINOR Ensuring valid return values in Subsite::accessible_sites() (AIR-48)

This commit is contained in:
Ingo Schommer 2011-09-05 17:20:24 +02:00
parent 9433a097ac
commit 01435e0de5

View File

@ -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',