BUG Fix incorrect reference to extension member ID

This commit is contained in:
Damian Mooyman 2015-03-31 17:07:29 +13:00
parent 0a70332e60
commit 99ff67feba

View File

@ -51,7 +51,9 @@ class BlogMemberExtension extends DataExtension {
$urlSegment = $filter->filter($name);
// Fallback to generic profile name if path is empty (= no valid, convertable characters)
if(!$urlSegment || $urlSegment == '-' || $urlSegment == '-1') $urlSegment = "profile-$this->ID";
if(!$urlSegment || $urlSegment == '-' || $urlSegment == '-1') {
$urlSegment = "profile-".$this->owner->ID;
}
return $urlSegment;
}