One more fix due a SQL error see #4477

skala
Julio Montoya 13 years ago
parent 2cfb470ce1
commit 536d319e19
  1. 11
      main/inc/lib/course.lib.php

@ -2787,8 +2787,11 @@ class CourseManager {
$params = array(); $params = array();
// Get notifications. // Get notifications.
$course['id_session'] = null; //$course['id_session'] = null;
$course['status'] = $course['status']; //$course['status'] = $course['status'];
$course_info['id_session'] = null;
$course_info['status'] = $course['status'];
$show_notification = Display::show_notification($course_info); $show_notification = Display::show_notification($course_info);
if (empty($course['user_id'])) { if (empty($course['user_id'])) {
@ -2920,7 +2923,9 @@ class CourseManager {
// Browse through all courses. // Browse through all courses.
while ($course = Database::fetch_array($result)) { while ($course = Database::fetch_array($result)) {
$course_info = api_get_course_info($course['code']); $course_info = api_get_course_info($course['code']);
$course['id_session'] = null; //$course['id_session'] = null;
$course_info['id_session'] = null;
$course_info['status'] = $course['status'];
// For each course, get if there is any notification icon to show // For each course, get if there is any notification icon to show
// (something that would have changed since the user's last visit). // (something that would have changed since the user's last visit).

Loading…
Cancel
Save