Code Duplication    Length = 3-3 lines in 2 locations

index.php 1 location

@@ 91-93 (lines=3) @@
88
        }
89
    }
90
91
    if (isset($totalQnas[$cat_id]) && $totalQnas[$cat_id] > 0) {
92
        $total += $totalQnas[$cat_id];
93
    }
94
    if ($total > 0) {
95
        if (isset($last_qnaObj[$cat_id])) {
96
            $category->setVar('last_faqid', $last_qnaObj[$cat_id]->getVar('faqid'));

open_index.php 1 location

@@ 80-82 (lines=3) @@
77
            }
78
        }
79
    }
80
    if (isset($totalQnas[$cat_id]) && $totalQnas[$cat_id] > 0) {
81
        $total += $totalQnas[$cat_id];
82
    }
83
    if ($total > 0) {
84
        $category->setVar('faqcount', $total);
85
        if (!isset($categories[$cat_id])) {