added braces, opps
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
9423db628f
commit
98edbde05c
|
@ -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