File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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.'">';
You can’t perform that action at this time.
0 commit comments