]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Fix potential bugs without expected behavior change
[friendica.git] / mod / item.php
index 6276ba4d1e44e2187004a9ca9d02c210b31b0e5c..7cb2849a89e137e54a85fbcecbb4434b2dcc47dd 100644 (file)
@@ -1049,7 +1049,7 @@ function handle_tag(&$body, &$inform, &$str_tags, $profile_uid, $tag, $network =
                         * Status.Net seems to require the numeric ID URL in a mention if the person isn't
                         * subscribed to you. But the nickname URL is OK if they are. Grrr. We'll tag both.
                         */
-                       if (strlen($alias)) {
+                       if (!empty($alias)) {
                                $newtag = '@[url=' . $alias . ']' . $newname . '[/url]';
                                if (!stripos($str_tags, '[url=' . $alias . ']')) {
                                        if (strlen($str_tags)) {