|
@@ 5142-5148 (lines=7) @@
|
| 5139 |
|
} |
| 5140 |
|
|
| 5141 |
|
// Go To Course button (only if admin, if course public or if student already subscribed) |
| 5142 |
|
if ($is_admin || |
| 5143 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5144 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5145 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5146 |
|
) { |
| 5147 |
|
$options[] = 'enter'; |
| 5148 |
|
} |
| 5149 |
|
|
| 5150 |
|
if ($is_admin || |
| 5151 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
|
@@ 5150-5156 (lines=7) @@
|
| 5147 |
|
$options[] = 'enter'; |
| 5148 |
|
} |
| 5149 |
|
|
| 5150 |
|
if ($is_admin || |
| 5151 |
|
$course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD && empty($course['registration_code']) || |
| 5152 |
|
(api_user_is_login($uid) && $course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM && empty($course['registration_code'])) || |
| 5153 |
|
(in_array($course['real_id'], $user_courses) && $course['visibility'] != COURSE_VISIBILITY_CLOSED) |
| 5154 |
|
) { |
| 5155 |
|
$options[] = 'enter'; |
| 5156 |
|
} |
| 5157 |
|
|
| 5158 |
|
if ($course['visibility'] != COURSE_VISIBILITY_HIDDEN && empty($course['registration_code']) && $course['unsubscribe'] == UNSUBSCRIBE_ALLOWED && api_user_is_login($uid) && (in_array($course['real_id'], |
| 5159 |
|
$user_courses)) |