diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index ce7775de..7d845aa7 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -1549,9 +1549,10 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid return false; } - $values = $this->extend('augmentValidURLSegment'); - if (count($values) && !min($values)) { - return false; + $votes = $this->extend('augmentValidURLSegment'); + if($votes) { + $votes = array_filter((array)$votes, 'is_null'); + if($votes) return min($votes); } return true;