1
1
Fork 0

You shoudln't use a text variable like an array.

This commit is contained in:
Michael 2017-03-18 23:32:59 +00:00 committed by Roland Haeder
parent 5e1c303c08
commit e9b083d13d
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -904,10 +904,10 @@ function contact_block() {
intval($shown) intval($shown)
); );
if (dbm::is_result($r)) { if (dbm::is_result($r)) {
$contacts = ""; $contacts = array();
foreach ($r AS $contact) foreach ($r AS $contact) {
$contacts[] = $contact["id"]; $contacts[] = $contact["id"];
}
$r = q("SELECT `id`, `uid`, `addr`, `url`, `name`, `thumb`, `network` FROM `contact` WHERE `id` IN (%s)", $r = q("SELECT `id`, `uid`, `addr`, `url`, `name`, `thumb`, `network` FROM `contact` WHERE `id` IN (%s)",
dbesc(implode(",", $contacts))); dbesc(implode(",", $contacts)));