mirror of
https://github.com/friendica/friendica
synced 2024-11-10 12:22:53 +00:00
Merge pull request #3244 from annando/bugfix-text
You shouldn't use a text variable like an array.
This commit is contained in:
commit
080e2af882
1 changed files with 3 additions and 3 deletions
|
@ -903,10 +903,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)));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue