added braces, opps

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-04-19 23:03:44 +02:00
parent 9423db628f
commit 98edbde05c
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -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));
} }