Code Duplication    Length = 3-3 lines in 2 locations

index.php 1 location

@@ 83-85 (lines=3) @@
80
        }
81
    }
82
83
    if (isset($totalQnas[$cat_id]) && $totalQnas[$cat_id] > 0) {
84
        $total += $totalQnas[$cat_id];
85
    }
86
    if ($total > 0) {
87
        if (isset($last_qnaObj[$cat_id])) {
88
            $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])) {