Code Duplication    Length = 5-5 lines in 2 locations

backendt.php 2 locations

@@ 89-93 (lines=5) @@
86
        $tpl->assign('channel_language', _LANGCODE);
87
        $tpl->assign('image_url', XOOPS_URL . '/images/logo.gif');
88
        $dimention = getimagesize(XOOPS_ROOT_PATH . '/images/logo.gif');
89
        if (empty($dimention[0])) {
90
            $width = 88;
91
        } else {
92
            $width = ($dimention[0] > 144) ? 144 : $dimention[0];
93
        }
94
        if (empty($dimention[1])) {
95
            $height = 31;
96
        } else {
@@ 94-98 (lines=5) @@
91
        } else {
92
            $width = ($dimention[0] > 144) ? 144 : $dimention[0];
93
        }
94
        if (empty($dimention[1])) {
95
            $height = 31;
96
        } else {
97
            $height = ($dimention[1] > 400) ? 400 : $dimention[1];
98
        }
99
        $tpl->assign('image_width', $width);
100
        $tpl->assign('image_height', $height);
101
        $count = $sarray;