]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Util/Images.php
authorMichael Vogel <icarus@dabo.de>
Wed, 10 May 2023 15:06:16 +0000 (17:06 +0200)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 15:06:16 +0000 (17:06 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Util/Images.php

index f468e69c2de1a65a00bd8587a184d81fe9daa47f..05b3573dd25c47fb79dfa65d6e86cb105d521528 100644 (file)
@@ -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]';