X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftags.php;h=6c45a4aee21c4fe63ae07c5660036848892741d4;hb=0cd9db9cb7f4c96f597e37590a536eaae123238d;hp=ad66b0272721656ef13d24f9a7d23a1099d4cdce;hpb=1838024f6d60674faf2bf08a736d0f81bcc49425;p=friendica.git diff --git a/include/tags.php b/include/tags.php index ad66b02727..6c45a4aee2 100644 --- a/include/tags.php +++ b/include/tags.php @@ -58,10 +58,10 @@ function create_tags_from_item($itemid) { if (substr(trim($tag), 0, 1) == "#") { // try to ignore #039 or #1 or anything like that - if(ctype_digit(substr(trim($tag),1))) + if (ctype_digit(substr(trim($tag),1))) continue; // try to ignore html hex escapes, e.g. #x2317 - if((substr(trim($tag),1,1) == 'x' || substr(trim($tag),1,1) == 'X') && ctype_digit(substr(trim($tag),2))) + if ((substr(trim($tag),1,1) == 'x' || substr(trim($tag),1,1) == 'X') && ctype_digit(substr(trim($tag),2))) continue; $type = TERM_HASHTAG; $term = substr($tag, 1); @@ -107,9 +107,10 @@ function create_tags_from_item($itemid) { function create_tags_from_itemuri($itemuri, $uid) { $messages = q("SELECT `id` FROM `item` WHERE uri ='%s' AND uid=%d", dbesc($itemuri), intval($uid)); - if(count($messages)) { - foreach ($messages as $message) + if (count($messages)) { + foreach ($messages as $message) { create_tags_from_item($message["id"]); + } } }