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();
|
||||
foreach ($r as $rr)
|
||||
if ($stringify_ids)
|
||||
foreach ($r as $rr) {
|
||||
if ($stringify_ids) {
|
||||
$ids[] = $rr['id'];
|
||||
} else {
|
||||
$ids[] = intval($rr['id']);
|
||||
}
|
||||
}
|
||||
|
||||
return api_format_data("ids", $type, array('id' => $ids));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue