@@ -33,8 +33,9 @@ |
||
| 33 | 33 | |
| 34 | 34 | $res = []; |
| 35 | 35 | foreach($students as $student) { |
| 36 | - if ($student['uid'][0] != null) |
|
| 37 | - $res += [ $student['uid'][0] => $student['displayname'][0] ]; |
|
| 36 | + if ($student['uid'][0] != null) { |
|
| 37 | + $res += [ $student['uid'][0] => $student['displayname'][0] ]; |
|
| 38 | + } |
|
| 38 | 39 | } |
| 39 | 40 | |
| 40 | 41 | return $this->json($response, $res); |