Skip to content

Commit efb64be

Browse files
ycastilloywarnier
authored andcommitted
Re-submitting patch that closes #5989
1 parent 8a00884 commit efb64be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/userportal.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ function return_courses_in_categories() {
559559
// We display a subscription link if:
560560
// 1. it is allowed to register for the course and if the course is not already in the courselist of the user and if the user is identiefied
561561
// 2.
562-
if ($user_identified && !in_array($course['code'], $courses_of_user)) {
562+
if ($user_identified && !array_key_exists($course['code'], $courses_of_user)) {
563563
if ($course['subscribe'] == '1') {
564564
/*$courses_list_string .= '<form action="main/auth/courses.php?action=subscribe&category='.Security::remove_XSS($_GET['category']).'" method="post">';
565565
$courses_list_string .= '<input type="hidden" name="sec_token" value="'.$stok.'">';

0 commit comments

Comments
 (0)