mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00: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
|
// Do not provide any input if there are no subsites configured
|
||||||
if (!Subsite::get()->count()) {
|
if (!Subsite::get()->exists()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user