Code Duplication    Length = 7-7 lines in 2 locations

admin/myblocksadmin.php 1 location

@@ 182-188 (lines=7) @@
179
180
        // bcachetime
181
        $cachetime_options = '';
182
        foreach ($cachetimes as $cachetime => $cachetime_name) {
183
            if ($bcachetime == $cachetime) {
184
                $cachetime_options .= "<option value='$cachetime' selected>$cachetime_name</option>\n";
185
            } else {
186
                $cachetime_options .= "<option value='$cachetime'>$cachetime_name</option>\n";
187
            }
188
        }
189
190
        // target modules
191
        $db            = XoopsDatabaseFactory::getDatabaseConnection();

admin/myblocksadmin2.php 1 location

@@ 200-206 (lines=7) @@
197
198
        // bcachetime
199
        $cachetime_options = '';
200
        foreach ($cachetimes as $cachetime => $cachetime_name) {
201
            if ($bcachetime == $cachetime) {
202
                $cachetime_options .= "<option value='$cachetime' selected>$cachetime_name</option>\n";
203
            } else {
204
                $cachetime_options .= "<option value='$cachetime'>$cachetime_name</option>\n";
205
            }
206
        }
207
208
        $module_options = '';
209
        foreach ($module_list as $mname => $module) {