Important - Fix missing '&' in api_protect_course_script()

pull/2487/head
Yannick Warnier 8 years ago
parent 44da750156
commit 51311d0187
  1. 2
      main/inc/lib/api.lib.php

@ -1109,7 +1109,7 @@ function api_protect_course_script($print_headers = false, $allow_session_admins
}
//If password is set and user is not registered to the course then the course is not visible
if ($is_allowed_in_course == false &
if ($is_allowed_in_course == false &&
isset($course_info['registration_code']) &&
!empty($course_info['registration_code'])
) {

Loading…
Cancel
Save