Showing
1 changed file
with
1 additions
and
1 deletions
@@ -46,7 +46,7 @@ class ClassModel | @@ -46,7 +46,7 @@ class ClassModel | ||
46 | $oneClass = array(); | 46 | $oneClass = array(); |
47 | $item = array(); | 47 | $item = array(); |
48 | foreach ($data['data'] as $k => $v) { | 48 | foreach ($data['data'] as $k => $v) { |
49 | - $oneClass = array('name' => ucfirst($k), 'ca' => array()); | 49 | + $oneClass = array('name' => ucfirst(rtrim($k, 's')), 'ca' => array()); |
50 | 50 | ||
51 | foreach ($v as $val) { | 51 | foreach ($v as $val) { |
52 | $item = array(); | 52 | $item = array(); |
-
Please register or login to post a comment