]> 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)
committerMichael <heluecht@pirati.ca>
Sat, 18 Mar 2017 23:32:59 +0000 (23:32 +0000)
include/text.php

index 6619dec93a3b1967ed3205450324fc052e76c71b..4a23b7ac37fa35b96e6c79c105ebc50399cc764b 100644 (file)
@@ -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)));