Skip to content

Commit

Permalink
Merge pull request #676 from creative-commoners/pulls/3/p81fix
Browse files Browse the repository at this point in the history
ENH Various fixes for PHP 8.1 compatibility
  • Loading branch information
GuySartorelli authored Apr 21, 2022
2 parents 214c370 + 6d8822c commit f8988ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/BlogMemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function onBeforeWrite()
$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++;
}

Expand Down

0 comments on commit f8988ad

Please sign in to comment.