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