From: Michael Vogel Date: Wed, 10 May 2023 15:06:16 +0000 (+0200) Subject: Update src/Util/Images.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45dda2c0647a76093fc50b7f245b78d59ef90434;p=friendica.git Update src/Util/Images.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Util/Images.php b/src/Util/Images.php index f468e69c2d..05b3573dd2 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -343,7 +343,8 @@ class Images * @param string $preview Preview image URL * @param string $description * @return string - */ public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = null): string + */ + public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = ''): string { if (!empty($preview)) { return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]';