Code Duplication    Length = 3-4 lines in 2 locations

index.php 1 location

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

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') && (($catObj->getVar('imgurl') != 'http://') && ($catObj->getVar('imgurl') != '')) ) {
68
            $imgurl = $myts->htmlSpecialChars($catObj->getVar('imgurl'));
69
        }
70
    } else {
71
        $thisCatTitle = '';
72
    }