Code Duplication    Length = 3-4 lines in 2 locations

viewcat.php 1 location

@@ 67-69 (lines=3) @@
64
    $imgurl = '';
65
    if (is_object($catObj) && !empty($catObj)) {
66
        $thisCatTitle = $myts->htmlSpecialChars($catObj->getVar('title'));
67
        if ($catObj->getVar('imgurl')
68
            && (($catObj->getVar('imgurl') != 'http://')
69
                && ($catObj->getVar('imgurl') != ''))
70
        ) {
71
            $imgurl = $myts->htmlSpecialChars($catObj->getVar('imgurl'));
72
        }

index.php 1 location

@@ 53-56 (lines=4) @@
50
$count       = 1;
51
foreach ($catObjs as $catObj) {
52
    $catImgUrl = '';
53
    if ($catObj->getVar('imgurl') && (($catObj->getVar('imgurl') != 'http://') && ($catObj->getVar('imgurl') != ''))) {
54
        //    if ( $catObj->getVar('imgurl') && ($catObj->getVar('imgurl') != "http://") ) {
55
        $catImgUrl = $myts->htmlSpecialChars($catObj->getVar('imgurl', 'n'));
56
    }
57
    // get the total number of subcats for this category
58
    $criteria = new CriteriaCompo();
59
    $criteria->add(new Criteria('pid', $catObj->getVar('cid'), '='));