diff --git a/main/auth/courses_categories.php b/main/auth/courses_categories.php
index bbad686e0d..565913ba00 100755
--- a/main/auth/courses_categories.php
+++ b/main/auth/courses_categories.php
@@ -148,7 +148,6 @@ $code = isset($code) ? $code : null;
-
';
+
foreach ($browse_courses_in_category as $course) {
$course_hidden = $course['visibility'] == COURSE_VISIBILITY_HIDDEN;
@@ -266,6 +267,8 @@ if ($showCourses && $action != 'display_sessions') {
$html .= '
';
echo $html;
}
+
+ echo '';
} else {
if (!isset($_REQUEST['subscribe_user_with_password']) &&
!isset($_REQUEST['subscribe_course'])
@@ -277,9 +280,6 @@ if ($showCourses && $action != 'display_sessions') {
}
}
}
-?>
-
-';
echo $cataloguePagination;