mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Switch count for exists() check for readability
This commit is contained in:
parent
f19b82f029
commit
153db12d42
@ -285,7 +285,7 @@ class SiteTreeSubsites extends DataExtension
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do not provide any input if there are no subsites configured
|
// Do not provide any input if there are no subsites configured
|
||||||
if (!Subsite::get()->count()) {
|
if (!Subsite::get()->exists()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user