Browse Source

Important - Fix missing '&' in api_protect_course_script()

Yannick Warnier 7 years ago
parent
commit
51311d0187
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/api.lib.php

+ 1 - 1
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'])
         ) {