From: Roland Häder Date: Wed, 19 Apr 2017 21:03:44 +0000 (+0200) Subject: added braces, opps X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98edbde05cd6af228fecc8960f347bcd00cf75ad;p=friendica.git added braces, opps Signed-off-by: Roland Häder --- diff --git a/include/api.php b/include/api.php index 32be45d67e..1705374bbb 100644 --- a/include/api.php +++ b/include/api.php @@ -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)); }