mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
getOptions() can return a boolean if ContentReviewType is disabled
This commit is contained in:
parent
051a945e7d
commit
00a41b56aa
@ -154,7 +154,7 @@ class PagesWithoutReviewScheduleReport extends Report
|
|||||||
|
|
||||||
$options = $record->getOptions();
|
$options = $record->getOptions();
|
||||||
|
|
||||||
if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
if (!$options || ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user