Code Duplication    Length = 4-4 lines in 2 locations

viewcats.php 1 location

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

index.php 1 location

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