Browse Source

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

pull/3112/head
Michael 4 years ago
committed by Roland Haeder
parent
commit
e9b083d13d
No known key found for this signature in database GPG Key ID: B72F8185C6C7BD78
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      include/text.php

+ 3
- 3
include/text.php View 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)));


Loading…
Cancel
Save