From 2b1ad2b649d27672b6c416ec6925a9338e67506b Mon Sep 17 00:00:00 2001 From: Arslan Hassan Date: Wed, 15 Aug 2012 11:01:03 +0000 Subject: [PATCH] Removed : indexed name index in get.php --- upload/api/get.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/upload/api/get.php b/upload/api/get.php index 35b354cd..ad666cbb 100644 --- a/upload/api/get.php +++ b/upload/api/get.php @@ -98,14 +98,11 @@ switch($mode) foreach($groups as $group) { $new_fields = array(); - $index_count = 0; - foreach($group['fields'] as $index => $field) + + foreach($group['fields'] as $field) { // foreach($fields as $field) - $new_fields[$index] = $field; - $new_fields[$index]['index'] = $index_count; - - $index_count++; + $new_fields[] = $field; } $group['fields'] = $new_fields; @@ -113,7 +110,7 @@ switch($mode) } - // pr($new_groups,true); + //pr($new_groups,true); echo json_encode($new_groups); } break;