Cast values to float

pull/3293/head
Angel Fernando Quiroz Campos 6 years ago
parent ea79963602
commit 8940fe0a00
  1. 4
      main/mySpace/myStudents.php

@ -897,8 +897,8 @@ $use_users_timezone = api_get_setting('use_users_timezone', 'timezones');
$score = $avg_student_score;
}
$userInfo['student_score'] = $score;
$userInfo['student_progress'] = $avg_student_progress;
$userInfo['student_score'] = (float) $score;
$userInfo['student_progress'] = (float) $avg_student_progress;
$userInfo['first_connection'] = $first_connection_date;
$userInfo['last_connection'] = $last_connection_date;
if ($details === 'true') {

Loading…
Cancel
Save