From 00a41b56aa6622d687438f974d8460e12b3e4255 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 17 Sep 2018 14:39:57 +1200 Subject: [PATCH] getOptions() can return a boolean if ContentReviewType is disabled --- 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..73c25e5 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; }