Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 94-103 (lines=10) @@
91
                        }
92
                        $sadmin = $moduleperm_handler
93
                            ->checkRight('module_admin', $module->getInfo('mid'), $groups);
94
                        if ($sadmin && ($module->getVar('hasnotification')
95
                            || is_array($module->getInfo('config'))
96
                            || is_array($module->getInfo('comments')))
97
                        ) {
98
                            $module->setInfo(
99
                                'link_pref',
100
                                \XoopsBaseConfig::get('url') . '/modules/system/admin.php?fct=preferences&op=showmod&mod='
101
                                . $module->getInfo('mid')
102
                            );
103
                        }
104
                    } else {
105
                        $module->setInfo('install', false);
106
                    }

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

@@ 139-147 (lines=9) @@
136
                    $module->getVar('mid'),
137
                    $groups
138
                );
139
                if ($sadmin && ($module->getVar('hasnotification')
140
                    || is_array($module->getInfo('config')) || is_array($module->getInfo('comments')))
141
                ) {
142
                    $module->setInfo(
143
                        'link_pref',
144
                        \XoopsBaseConfig::get('url') . '/modules/system/admin.php?fct=preferences&op=showmod&mod='
145
                        . $module->getVar('mid')
146
                    );
147
                }
148
149
                $list[] = $module;
150
            }