Code Duplication    Length = 5-5 lines in 2 locations

blocks/news_top.php 1 location

@@ 708-712 (lines=5) @@
705
    $size       = count($options);
706
    foreach ($topics_arr as $onetopic) {
707
        $sel = '';
708
        if ($onetopic['topic_pid'] != 0) {
709
            $onetopic['prefix'] = str_replace('.', '-', $onetopic['prefix']) . ' ';
710
        } else {
711
            $onetopic['prefix'] = str_replace('.', '', $onetopic['prefix']);
712
        }
713
        for ($i = 14; $i < $size; ++$i) {
714
            if ($options[$i] == $onetopic['topic_id']) {
715
                $sel = ' selected';

topics_directory.php 1 location

@@ 73-77 (lines=5) @@
70
        if (array_key_exists($onetopic['topic_id'], $newscountbytopic)) {
71
            $count = $newscountbytopic[$onetopic['topic_id']];
72
        }
73
        if ($onetopic['topic_pid'] != 0) {
74
            $onetopic['prefix'] = str_replace('.', '-', $onetopic['prefix']) . '&nbsp;';
75
        } else {
76
            $onetopic['prefix'] = str_replace('.', '', $onetopic['prefix']);
77
        }
78
79
        $tbl_topics[] = array(
80
            'id'          => $onetopic['topic_id'],