mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
FIX: Turn SilverStripe Map into an array to give an accurate falsey value
This commit is contained in:
parent
bb5f2c07e1
commit
db69c486a0
@ -105,7 +105,7 @@ class SiteTreeSubsites extends DataExtension
|
||||
$subsitesMap = [];
|
||||
if ($subsites && $subsites->count()) {
|
||||
$subsitesToMap = $subsites->exclude('ID', $this->owner->SubsiteID);
|
||||
$subsitesMap = $subsitesToMap->map('ID', 'Title');
|
||||
$subsitesMap = $subsitesToMap->map('ID', 'Title')->toArray();
|
||||
}
|
||||
|
||||
// Master page edit field (only allowed from default subsite to avoid inconsistent relationships)
|
||||
|
Loading…
Reference in New Issue
Block a user