Browse Source

Merge pull request #1955 from chamilo/scrutinizer-patch-1

Scrutinizer Auto-Fixes
Julio Montoya 7 năm trước cách đây
mục cha
commit
883caa9c36

+ 1 - 1
main/inc/lib/course.lib.php

@@ -4862,7 +4862,7 @@ class CourseManager
 
             }
 
-            if ($access_link && in_array('enter',$access_link) ||
+            if ($access_link && in_array('enter', $access_link) ||
                 $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD
             ) {
                 $my_course['go_to_course_button'] = Display::url(

+ 1 - 1
main/lp/learnpath.class.php

@@ -1426,7 +1426,7 @@ class learnpath
             // Update the current item with the new data.
             $sql = "UPDATE $tbl_lp_item
                     SET
-                        title = '" . Database::escape_string($title)."',
+                        title = '".Database::escape_string($title)."',
                         description = '" . Database::escape_string($description)."',
                         parent_item_id = " . $parent.",
                         previous_item_id = " . $previous.",

+ 1 - 1
plugin/dashboard/block_student/block_student.class.php

@@ -181,7 +181,7 @@ class BlockStudent extends Block
                 }
 
                 $courses_by_user = CourseManager::get_courses_list_by_user_id($student_id, true);
-                $evaluations_avg  = 0;
+                $evaluations_avg = 0;
                 $score = $weight = 0;
                 foreach ($courses_by_user as $course) {
                     $course_code = $course['code'];