Removing course_code from table access_url_rel_course see #6943
Fixing PHP warning.