Code Duplication    Length = 3-5 lines in 2 locations

main/inc/lib/userportal.lib.php 1 location

@@ 702-706 (lines=5) @@
699
                    // 0 courses visible to the world (we're in the anonymous list here).
700
            $result .=  $courses_list_string;
701
        }
702
        if ($category != '') {
703
            $result .=  '<p><a href="'.api_get_self().'"> ' .
704
                Display :: return_icon('back.png', get_lang('BackToHomePage')).
705
                get_lang('BackToHomePage') . '</a></p>';
706
        }
707
        return $result;
708
    }
709

src/Chamilo/CoreBundle/Framework/PageController.php 1 location

@@ 860-862 (lines=3) @@
857
            // 0 courses visible to the world (we're in the anonymous list here).
858
            $result .= $courses_list_string;
859
        }
860
        if ($category != '') {
861
            $result .= '<p><a href="'.api_get_self().'"> '.Display :: return_icon('back.png', get_lang('BackToHomePage')).get_lang('BackToHomePage').'</a></p>';
862
        }
863
864
        return $result;
865
    }