Code Duplication    Length = 3-3 lines in 2 locations

htdocs/modules/system/class/extension.php 1 location

@@ 85-87 (lines=3) @@
82
                            XoopsLocale::formatTimestamp($extension->getVar('last_update'), 's')
83
                        );
84
                        $module->setInfo('hasconfig', $module->getVar('hasconfig'));
85
                        if (round($module->getInfo('version'), 2) != $extension->getVar('version')) {
86
                            $module->setInfo('warning_update', true);
87
                        }
88
                        $groups = array();
89
                        if (is_object($xoops->user)) {
90
                            $groups = $xoops->user->getGroups();

htdocs/modules/system/class/module.php 1 location

@@ 105-107 (lines=3) @@
102
                    $module->setInfo('can_delete', true);
103
                    $module->setInfo('can_disable', true);
104
                }
105
                if (round($module->getInfo('version'), 2) != $module->getVar('version')) {
106
                    $module->setInfo('warning_update', true);
107
                }
108
                if (XoopsLoad::fileExists(
109
                    \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getVar('dirname') . '/icons/logo_small.png'
110
                )) {