fix overly nested if statement

This commit is contained in:
Julian 2016-01-19 16:11:03 +13:00
parent f4372ceeb5
commit 1da54d6538
1 changed files with 2 additions and 4 deletions

View File

@ -459,10 +459,8 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
if (!$options) {
return false;
} else {
if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
return false;
}
} elseif ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
return false;
}
if (!$member) {