Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
remotes/angel/1.11.x
Scrutinizer Auto-Fixer 8 years ago
parent 5fa816b1ad
commit 9a9f1ff203
  1. 2
      main/inc/lib/course.lib.php
  2. 2
      main/lp/learnpath.class.php
  3. 2
      plugin/dashboard/block_student/block_student.class.php

@ -4868,7 +4868,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 $course_info['visibility'] == COURSE_VISIBILITY_OPEN_WORLD
) { ) {
$my_course['go_to_course_button'] = Display::url( $my_course['go_to_course_button'] = Display::url(

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

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

Loading…
Cancel
Save