]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Images.php
Update function / rearrange tab order
[friendica.git] / src / Util / Images.php
index f468e69c2de1a65a00bd8587a184d81fe9daa47f..aed72f065b7c8c0810efa22c0aaa938ca6c7c46c 100644 (file)
@@ -343,11 +343,13 @@ 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]';
                }
+
                return '[img=' . $photo . ']' . $description . '[/img]';
        }
 }