getOptions() can return a boolean if ContentReviewType is disabled
This commit is contained in:
parent
051a945e7d
commit
00a41b56aa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue