Passed
Push — 1.10.x ( e4c880...90da1a )
by
unknown
51:46
created
main/mySpace/myStudents.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
 
867 867
                     if ($progress === null) {
868 868
                         $progress = '0%';
869
-                    }  else {
869
+                    } else {
870 870
                         $any_result = true;
871 871
                     }
872 872
 
@@ -896,7 +896,9 @@  discard block
 block discarded – undo
896 896
                         $start_time =  '-';
897 897
                     }
898 898
 
899
-                    if (!empty($total_time)) $any_result = true;
899
+                    if (!empty($total_time)) {
900
+                        $any_result = true;
901
+                    }
900 902
 
901 903
                     // Quiz in lp
902 904
                     $score = Tracking::get_avg_student_score(
@@ -1089,10 +1091,11 @@  discard block
 block discarded – undo
1089 1091
                 $result_last_attempt = Database::query($sql);
1090 1092
                 if (Database :: num_rows($result_last_attempt) > 0) {
1091 1093
                     $id_last_attempt = Database :: result($result_last_attempt, 0, 0);
1092
-                    if ($count_attempts > 0)
1093
-                        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).'">
1094
+                    if ($count_attempts > 0) {
1095
+                                            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).'">
1094 1096
                         '.Display::return_icon('quiz.gif').'
1095 1097
                      </a>';
1098
+                    }
1096 1099
                 }
1097 1100
                 echo '</td>';
1098 1101
 
Please login to merge, or discard this patch.