From e9b083d13d9a94bd77e7fdad0f5d7795b4a2b764 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Mar 2017 23:32:59 +0000 Subject: [PATCH] You shoudln't use a text variable like an array. --- include/text.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)));