From: Michael Date: Fri, 9 Jul 2021 04:42:01 +0000 (+0000) Subject: Avoid error on empty content X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17ae9b71af8501cdd5facda26649399652dc2cdc;p=friendica.git Avoid error on empty content --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 4440f22423..a86a0d155c 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1287,7 +1287,7 @@ class BBCode * @return string * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function convertForItem(int $uriid, string $text, int $simple_html = self::INTERNAL) + public static function convertForItem(int $uriid = 0, string $text = null, int $simple_html = self::INTERNAL) { $try_oembed = ($simple_html == self::INTERNAL);