Code Duplication    Length = 3-3 lines in 2 locations

index.php 1 location

@@ 86-88 (lines=3) @@
83
        }
84
    }
85
86
    if (isset($totalQnas[$cat_id]) && $totalQnas[$cat_id] > 0) {
87
        $total += $totalQnas[$cat_id];
88
    }
89
    if ($total > 0) {
90
        if (isset($last_qnaObj[$cat_id])) {
91
            $category->setVar('last_faqid', $last_qnaObj[$cat_id]->getVar('faqid'));

open_index.php 1 location

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