1
1
Fork 0

Merge pull request #3244 from annando/bugfix-text

You shouldn't use a text variable like an array.
This commit is contained in:
rabuzarus 2017-03-19 00:51:57 +01:00 committed by GitHub
commit 080e2af882

View 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)));