From 98edbde05cd6af228fecc8960f347bcd00cf75ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 19 Apr 2017 23:03:44 +0200 Subject: [PATCH] added braces, opps MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- include/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); } -- 2.39.5