|
@@ -218,9 +218,7 @@ class Program extends Eloquent
|
218
|
218
|
foreach ($students_attempted as $criteria_id => $students_attempted_n) {
|
219
|
219
|
if ($students_attempted_n) {
|
220
|
220
|
$percentage_students_who_achieved = 100.0 * $students_achieved[$criteria_id] / $students_attempted[$criteria_id];
|
221
|
|
- } else {
|
222
|
|
- $percentage_students_who_achieved = 0;
|
223
|
|
- }
|
|
221
|
+ }
|
224
|
222
|
else
|
225
|
223
|
{
|
226
|
224
|
$percentage_students_who_achieved=0;
|
|
@@ -308,9 +306,7 @@ class Program extends Eloquent
|
308
|
306
|
foreach ($students_attempted as $criteria_id => $students_attempted_n) {
|
309
|
307
|
if ($students_attempted_n) {
|
310
|
308
|
$percentage_students_who_achieved = 100.0 * $students_achieved[$criteria_id] / $students_attempted[$criteria_id];
|
311
|
|
- } else {
|
312
|
|
- $percentage_students_who_achieved = 0;
|
313
|
|
- }
|
|
309
|
+ }
|
314
|
310
|
else
|
315
|
311
|
{
|
316
|
312
|
$percentage_students_who_achieved=0;
|