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