Code Duplication    Length = 3-3 lines in 2 locations

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])) {

index.php 1 location

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