diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 4f1d881381..003f7ab402 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -814,7 +814,7 @@ class BBCode $content = preg_replace(Strings::autoLinkRegEx(), '$1', $match[3]); - return $match[1] . $callback($attributes, $author_contact, $content, trim($match[1]) != ''); + return $match[1] . $callback($attributes, $author_contact, $content ?? '', trim($match[1]) != ''); }, $text );