Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 213-215 (lines=3) @@
210
        $prev = ((int)$_GET['start']-19);
211
        $content = '';
212
        if (!isset($_GET['start']) || $_GET['start'] == 0) {
213
            if ($nb_announcement > 20) {
214
                $content .= '<a href="news_list.php?start='.$next.'">'.get_lang('NextBis').' >> </a>';
215
            }
216
        } else {
217
            echo '<a href="news_list.php?start='.$prev.'"> << '.get_lang('Prev').'</a>';
218
            if ($nb_announcement > 20) {
@@ 218-220 (lines=3) @@
215
            }
216
        } else {
217
            echo '<a href="news_list.php?start='.$prev.'"> << '.get_lang('Prev').'</a>';
218
            if ($nb_announcement > 20) {
219
                $content .= '<a href="news_list.php?start='.$next.'">'.get_lang('NextBis').' >> </a>';
220
            }
221
        }
222
        return $content;
223
    }