Merge pull request #371 from creative-commoners/pulls/2.0/exists

Switch count for exists() check for readability
This commit is contained in:
Dylan Wagstaff 2018-06-20 09:44:51 +12:00 committed by GitHub
commit de0bba0df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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