Remove E_NOTICE when add a course

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 2758b3c47f
commit 30b29f4dfc
  1. 2
      main/admin/course_add.php

@ -173,7 +173,7 @@ if ($form->validate()) {
$course['wanted_code'] = $course['visual_code'];
$course['gradebook_model_id'] = isset($course['gradebook_model_id']) ? $course['gradebook_model_id'] : null;
// Fixing category code
$course['course_category'] = $course['category_code'];
$course['course_category'] = isset($course['category_code']) ? $course['category_code'] : '';
$course_info = CourseManager::create_course($course);
header('Location: course_list.php'.($course_info===false?'?action=show_msg&warn='.api_get_last_failure():''));

Loading…
Cancel
Save