]> git.mxchange.org Git - friendica.git/commitdiff
You shoudln't use a text variable like an array.
authorMichael <heluecht@pirati.ca>
Sat, 18 Mar 2017 23:32:59 +0000 (23:32 +0000)
committerRoland Haeder <roland@mxchange.org>
Sun, 19 Mar 2017 00:23:34 +0000 (01:23 +0100)
include/text.php

index a02021e03c1c3793b953753780e2688da3a8ce4c..71a254b251ba7497620ed7f02f17aa80ae762832 100644 (file)
@@ -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)));