mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +00:00
added braces, opps
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
9423db628f
commit
98edbde05c
1 changed files with 3 additions and 2 deletions
|
@ -2970,12 +2970,13 @@ $called_api = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ids = array();
|
$ids = array();
|
||||||
foreach ($r as $rr)
|
foreach ($r as $rr) {
|
||||||
if ($stringify_ids)
|
if ($stringify_ids) {
|
||||||
$ids[] = $rr['id'];
|
$ids[] = $rr['id'];
|
||||||
} else {
|
} else {
|
||||||
$ids[] = intval($rr['id']);
|
$ids[] = intval($rr['id']);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return api_format_data("ids", $type, array('id' => $ids));
|
return api_format_data("ids", $type, array('id' => $ids));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue