Minor - Removing php warning msg

skala
Julio Montoya 14 years ago
parent 5fd9dcf187
commit b751923039
  1. 7
      main/inc/lib/thematic.lib.php

@ -436,10 +436,11 @@ class Thematic
* @return array data
*/
public function get_thematic_advance_by_thematic_id($thematic_id, $course_code = null) {
$course_info = api_get_course_info($course_code);
// set current course
if (isset($course_code)) {
$course_info = api_get_course_info($course_code);
if (isset($course_code)) {
$tbl_thematic_advance = Database::get_course_table(TABLE_THEMATIC_ADVANCE, $course_info['dbName']);
} else {
$tbl_thematic_advance = Database::get_course_table(TABLE_THEMATIC_ADVANCE);

Loading…
Cancel
Save