Fixing PHP warning.

1.9.x
Julio Montoya 12 years ago
parent ab9ae60762
commit 087efa3833
  1. 2
      main/admin/course_edit.php

@ -73,7 +73,7 @@ while ($obj = Database::fetch_object($res)) {
$teachers[$obj->user_id] = api_get_person_name($obj->firstname, $obj->lastname); $teachers[$obj->user_id] = api_get_person_name($obj->firstname, $obj->lastname);
} }
if ($course['tutor_name'] == $course_teachers[$obj->user_id]) { if (isset($course_teachers[$obj->user_id]) && $course['tutor_name'] == $course_teachers[$obj->user_id]) {
$course['tutor_name'] = $obj->user_id; $course['tutor_name'] = $obj->user_id;
} }
// We add in the array platform teachers // We add in the array platform teachers

Loading…
Cancel
Save