Code Duplication    Length = 7-7 lines in 2 locations

admin/myblocksadmin.php 1 location

@@ 155-161 (lines=7) @@
152
153
        // bcachetime
154
        $cachetime_options = '' ;
155
        foreach( $cachetimes as $cachetime => $cachetime_name ) {
156
            if( $bcachetime == $cachetime ) {
157
                $cachetime_options .= "<option value='$cachetime' selected='selected'>$cachetime_name</option>\n" ;
158
            } else {
159
                $cachetime_options .= "<option value='$cachetime'>$cachetime_name</option>\n" ;
160
            }
161
        }
162
163
        // target modules
164
        $db =& XoopsDatabaseFactory::getDatabaseConnection();

admin/myblocksadmin2.php 1 location

@@ 176-182 (lines=7) @@
173
174
        // bcachetime
175
        $cachetime_options = '' ;
176
        foreach( $cachetimes as $cachetime => $cachetime_name ) {
177
            if( $bcachetime == $cachetime ) {
178
                $cachetime_options .= "<option value='$cachetime' selected='selected'>$cachetime_name</option>\n" ;
179
            } else {
180
                $cachetime_options .= "<option value='$cachetime'>$cachetime_name</option>\n" ;
181
            }
182
        }
183
184
        $module_options = '' ;
185
        foreach( $module_list as $mname => $module ) {