]> git.mxchange.org Git - friendica.git/commitdiff
Should be DBA::isResult() fixes/e-notice-mod-item-preview
authorRoland Häder <roland@mxchange.org>
Tue, 24 Jul 2018 21:15:03 +0000 (23:15 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 24 Jul 2018 21:15:03 +0000 (23:15 +0200)
mod/item.php

index b5f8370b3858391be2bbe08bb9934120a44f40f5..afb119c8affed95dff4bb55b06fc6e647b4fb73c 100644 (file)
@@ -994,7 +994,7 @@ function handle_tag(App $a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $n
                }
 
                // Check if $contact has been successfully loaded
-               if (is_array($contact)) {
+               if (DBA::isResult($contact)) {
                        if (strlen($inform) && (isset($contact["notify"]) || isset($contact["id"]))) {
                                $inform .= ',';
                        }
@@ -1008,6 +1008,7 @@ function handle_tag(App $a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $n
                        $profile = $contact["url"];
                        $alias   = $contact["alias"];
                        $newname = $contact["nick"];
+
                        if (($newname == "") || (($contact["network"] != NETWORK_OSTATUS) && ($contact["network"] != NETWORK_TWITTER)
                                && ($contact["network"] != NETWORK_STATUSNET) && ($contact["network"] != NETWORK_APPNET))) {
                                $newname = $contact["name"];