Compare commits

...

2 Commits

Author SHA1 Message Date
Guy Sartorelli
f8988ad5c3
Merge pull request #676 from creative-commoners/pulls/3/p81fix
ENH Various fixes for PHP 8.1 compatibility
2022-04-21 12:03:33 +12:00
Steve Boyd
6d8822ca12 ENH Various fixes for PHP 8.1 compatibility 2022-04-14 15:17:20 +12:00

View File

@ -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++;
}