Code Duplication    Length = 5-5 lines in 2 locations

backendt.php 2 locations

@@ 82-86 (lines=5) @@
79
        $tpl->assign('channel_language', _LANGCODE);
80
        $tpl->assign('image_url', XOOPS_URL . '/images/logo.gif');
81
        $dimention = getimagesize(XOOPS_ROOT_PATH . '/images/logo.gif');
82
        if (empty($dimention[0])) {
83
            $width = 88;
84
        } else {
85
            $width = ($dimention[0] > 144) ? 144 : $dimention[0];
86
        }
87
        if (empty($dimention[1])) {
88
            $height = 31;
89
        } else {
@@ 87-91 (lines=5) @@
84
        } else {
85
            $width = ($dimention[0] > 144) ? 144 : $dimention[0];
86
        }
87
        if (empty($dimention[1])) {
88
            $height = 31;
89
        } else {
90
            $height = ($dimention[1] > 400) ? 400 : $dimention[1];
91
        }
92
        $tpl->assign('image_width', $width);
93
        $tpl->assign('image_height', $height);
94
        $count = $sarray;