Code Duplication    Length = 6-6 lines in 2 locations

main/inc/lib/userportal.lib.php 2 locations

@@ 1050-1055 (lines=6) @@
1047
1048
        $html = '';
1049
        // Showing history title
1050
        if ($load_history) {
1051
            $html .= Display::page_subheader(get_lang('HistoryTrainingSession'));
1052
            if (empty($session_categories)) {
1053
                $html .= get_lang('YouDoNotHaveAnySessionInItsHistory');
1054
            }
1055
        }
1056
1057
        $courses_html = '';
1058
        $special_courses = '';
@@ 1440-1445 (lines=6) @@
1437
        $html = '';
1438
1439
        //Showing history title
1440
        if ($load_history) {
1441
            $html .= Display::page_subheader(get_lang('HistoryTrainingSession'));
1442
            if (empty($session_categories)) {
1443
                $html .=  get_lang('YouDoNotHaveAnySessionInItsHistory');
1444
            }
1445
        }
1446
1447
        $specialCourses = '';
1448
        $loadDirs = $this->load_directories_preview;