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=e9b083d13d9a94bd77e7fdad0f5d7795b4a2b764;p=friendica.git You shoudln't use a text variable like an array. --- diff --git a/include/text.php b/include/text.php index a02021e03c..71a254b251 100644 --- a/include/text.php +++ b/include/text.php @@ -904,10 +904,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)));