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:
Saophalkun Ponlu 2018-08-21 09:27:05 +12:00
parent cf35e056b6
commit 68b1616d22

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