From: Michael Date: Sat, 18 Mar 2017 23:32:59 +0000 (+0000) Subject: You shoudln't use a text variable like an array. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb5f1f61fc0939666c0d1c0d6e0ca6e14eeca416;p=friendica.git You shoudln't use a text variable like an array. --- diff --git a/include/text.php b/include/text.php index 6619dec93a..4a23b7ac37 100644 --- a/include/text.php +++ b/include/text.php @@ -903,10 +903,10 @@ function contact_block() { intval($shown) ); if (dbm::is_result($r)) { - $contacts = ""; - foreach ($r AS $contact) + $contacts = array(); + foreach ($r AS $contact) { $contacts[] = $contact["id"]; - + } $r = q("SELECT `id`, `uid`, `addr`, `url`, `name`, `thumb`, `network` FROM `contact` WHERE `id` IN (%s)", dbesc(implode(",", $contacts)));