X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdelivery.php;h=f95caed295f8bef2820cd8356675ee9fd913b53f;hb=56bfb0f45a104b5bba783ff56876bbe2fb96c352;hp=098e423d170d9d6efb8dd7e3903fb6e6cc307e36;hpb=8f253f6c1288534c50fac34f05afb1a2c07c9335;p=friendica.git diff --git a/include/delivery.php b/include/delivery.php index 098e423d17..f95caed295 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -1,6 +1,7 @@ "; // If Threading is enabled, write down the correct parent - if (($it["thr-parent"] != "") and ($it["thr-parent"] != $it["parent-uri"])) + if (($it["thr-parent"] != "") && ($it["thr-parent"] != $it["parent-uri"])) $headers .= " <".iri2msgid($it["thr-parent"]).">"; $headers .= "\n"; @@ -462,14 +463,14 @@ function delivery_run(&$argv, &$argc){ dbesc($it['parent-uri']), intval($uid)); - if (dbm::is_result($r) AND ($r[0]['title'] != '')) { + if (dbm::is_result($r) && ($r[0]['title'] != '')) { $subject = $r[0]['title']; } else { $r = q("SELECT `title` FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d LIMIT 1", dbesc($it['parent-uri']), intval($uid)); - if (dbm::is_result($r) AND ($r[0]['title'] != '')) + if (dbm::is_result($r) && ($r[0]['title'] != '')) $subject = $r[0]['title']; } }