Switch count for exists() check for readability

This commit is contained in:
Robbie Averill 2018-06-20 09:27:04 +12:00
parent f19b82f029
commit 153db12d42

View File

@ -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;
}