ENH Various fixes for PHP 8.1 compatibility

This commit is contained in:
Steve Boyd 2022-04-14 15:17:20 +12:00
parent 214c370d68
commit 6d8822ca12
1 changed files with 1 additions and 1 deletions

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