Completed
Push — 1.10.x ( 9f4bc0...9506ef )
by Julito
101:56 queued 49:47
created
main/mySpace/myStudents.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
 
865 865
                     if ($progress === null) {
866 866
                         $progress = '0%';
867
-                    }  else {
867
+                    } else {
868 868
                         $any_result = true;
869 869
                     }
870 870
 
@@ -894,7 +894,9 @@  discard block
 block discarded – undo
894 894
                         $start_time =  '-';
895 895
                     }
896 896
 
897
-                    if (!empty($total_time)) $any_result = true;
897
+                    if (!empty($total_time)) {
898
+                        $any_result = true;
899
+                    }
898 900
 
899 901
                     // Quiz in lp
900 902
                     $score = Tracking::get_avg_student_score(
@@ -1110,10 +1112,11 @@  discard block
 block discarded – undo
1110 1112
                     $result_last_attempt = Database::query($sql);
1111 1113
                     if (Database :: num_rows($result_last_attempt) > 0) {
1112 1114
                         $id_last_attempt = Database :: result($result_last_attempt, 0, 0);
1113
-                        if ($count_attempts > 0)
1114
-                            echo '<a href="../exercice/exercise_show.php?id=' . $id_last_attempt . '&cidReq='.$course_code.'&session_id='.$sessionId.'&student='.$student_id.'&origin='.(empty($origin)?'tracking':$origin).'">
1115
+                        if ($count_attempts > 0) {
1116
+                                                    echo '<a href="../exercice/exercise_show.php?id=' . $id_last_attempt . '&cidReq='.$course_code.'&session_id='.$sessionId.'&student='.$student_id.'&origin='.(empty($origin)?'tracking':$origin).'">
1115 1117
                             '.Display::return_icon('quiz.gif').'
1116 1118
                          </a>';
1119
+                        }
1117 1120
                     }
1118 1121
                     echo '</td>';
1119 1122
 
Please login to merge, or discard this patch.