BUG: Remove the is_null check on augmentValidURLSegment

Object::extend already does a check for NULL before it adds the results
to the array of return values. This was required for Translatable as the
result from Translatable::augmentValidURLSegment was being ignored.
This commit is contained in:
Robert Curry 2012-07-24 16:02:11 +12:00 committed by Mateusz Uzdowski
parent 7316f96190
commit 9cf5a6f47a

View File

@ -1580,8 +1580,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$votes = $this->extend('augmentValidURLSegment');
if($votes) {
$votes = array_filter((array)$votes, 'is_null');
if($votes) return min($votes);
return min($votes);
}
return true;