|
@@ -1271,7 +1271,7 @@ function api_get_course_info($course_code = null) {
|
|
|
|
|
|
// The real_id is an integer. It is mandatory for future implementations.
|
|
|
$_course['real_id' ] = $course_data['id' ];
|
|
|
- $_course['activate_legal'] = $course_data['activate_legal'];
|
|
|
+ $_course['activate_legal'] = isset($course_data['activate_legal']) ? $course_data['activate_legal'] : false;
|
|
|
|
|
|
//I know this is bad, but this reflects that it was a bad decistion to not add a flag in the DB if an image exists
|
|
|
if (file_exists(api_get_path(SYS_COURSE_PATH).$course_data['directory'].'/course-pic85x85.png')) {
|