]> git.mxchange.org Git - friendica.git/commitdiff
added braces, opps
authorRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 21:03:44 +0000 (23:03 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 21:03:44 +0000 (23:03 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
include/api.php

index 32be45d67eacce19d0f463e755194fa0c2549a00..1705374bbb55371dc7ff673523fbbf663f434460 100644 (file)
@@ -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));
        }