Code Duplication    Length = 4-4 lines in 2 locations

viewcats.php 1 location

@@ 303-306 (lines=4) @@
300
301
            $newcount  = $xoopsModuleConfig['adslight_countday'];
302
            $startdate = (time() - (86400 * $newcount));
303
            if ($startdate < $date) {
304
                $newitem       = '<img src="' . XOOPS_URL . '/modules/adslight/assets/images/newred.gif" />';
305
                $a_item['new'] = $newitem;
306
            }
307
            if ($xoopsUser) {
308
                $timezone = $xoopsUser->timezone();
309
                if (isset($timezone)) {

index.php 1 location

@@ 245-248 (lines=4) @@
242
                $newcount  = $xoopsModuleConfig['adslight_countday'];
243
                $startdate = (time() - (86400 * $newcount));
244
245
                if ($startdate < $date) {
246
                    $newitem       = '<img src="' . XOOPS_URL . '/modules/adslight/assets/images/newred.gif" alt="new" />';
247
                    $a_item['new'] = $newitem;
248
                }
249
250
                $useroffset = '';
251
                if ($xoopsUser) {