BUGFIX: Error trying to OwnerGroups() method on boolean value
This issue occurs when a page has "Inherit from parent page" for content review option and a review date, and its parent has "Disable content review" for content review option.
This commit is contained in:
parent
cf35e056b6
commit
68b1616d22
|
@ -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