Use api_get_course_info_by_id($id) rather than api_get_course_id() as the $id might not exist in this context (for example when creating a course from a template in the admin section)
parent
87cb80d819
commit
c04e34b305
Loading…
Reference in new issue