getOptions() can return a boolean if ContentReviewType is disabled

This commit is contained in:
Will Rossiter 2018-09-17 14:39:57 +12:00 committed by GitHub
parent 051a945e7d
commit 00a41b56aa
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;
}