Merge pull request #101 from phalkunz/bugfix/page-check-before-method-call

BUGFIX: Error trying to OwnerGroups() method on boolean value
This commit is contained in:
Robbie Averill 2018-08-21 09:50:43 +12:00 committed by GitHub
commit cc4b6960e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class PagesWithoutReviewScheduleReport extends Report
$options = $record->getOptions();
if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
if ($options && $options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
return false;
}