diff --git a/src/Model/BlogMemberExtension.php b/src/Model/BlogMemberExtension.php index 86f6cec..b13c532 100644 --- a/src/Model/BlogMemberExtension.php +++ b/src/Model/BlogMemberExtension.php @@ -56,7 +56,7 @@ class BlogMemberExtension extends DataExtension $this->owner->URLSegment = $this->generateURLSegment(); while (!$this->validURLSegment()) { - $this->owner->URLSegment = preg_replace('/-[0-9]+$/', null, $this->owner->URLSegment) . '-' . $count; + $this->owner->URLSegment = preg_replace('/-[0-9]+$/', '', $this->owner->URLSegment) . '-' . $count; $count++; }