diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php
index dccb96a7ce..8d33e739bb 100644
--- a/main/inc/lib/userportal.lib.php
+++ b/main/inc/lib/userportal.lib.php
@@ -873,17 +873,17 @@ class IndexManager {
$url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses';
$my_account_content .= '
'.Display::url(get_lang('SortMyCourses'), $url, array('class' => 'sort course')).'';
- //Course management
+ // Session history
+ if (isset($_GET['history']) && intval($_GET['history']) == 1) {
+ $my_account_content .= ''.get_lang('DisplayTrainingList').'';
+ } else {
+ $my_account_content .= ''.get_lang('HistoryTrainingSessions').'';
+ }
+
+ // Course catalog
if ($show_course_link) {
if (!api_is_drh()) {
$my_account_content .= ''.get_lang('CourseCatalog').'';
-
- if (isset($_GET['history']) && intval($_GET['history']) == 1) {
- $my_account_content .= ''.get_lang('DisplayTrainingList').'';
- } else {
- $my_account_content .= ''.get_lang('HistoryTrainingSessions').'';
- }
-
} else {
$my_account_content .= ''.get_lang('Dashboard').'';
}