From 68b1616d22c8534a42b83cef3525169824191a43 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Tue, 21 Aug 2018 09:27:05 +1200 Subject: [PATCH] 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. --- src/Reports/PagesWithoutReviewScheduleReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Reports/PagesWithoutReviewScheduleReport.php b/src/Reports/PagesWithoutReviewScheduleReport.php index 0b9ef9e..0f7b402 100644 --- a/src/Reports/PagesWithoutReviewScheduleReport.php +++ b/src/Reports/PagesWithoutReviewScheduleReport.php @@ -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; }