Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/usermanager.lib.php 2 locations

@@ 2049-2051 (lines=3) @@
2046
            $production_list = '<div class="files-production"><ul id="productions">';
2047
            foreach ($productions as $file) {
2048
                $production_list .= '<li><img src="'.$add_image.'" /><a href="'.$production_dir.urlencode($file).'" target="_blank">'.htmlentities($file).'</a>';
2049
                if ($showDelete) {
2050
                    $production_list .= '&nbsp;&nbsp;<input style="width:16px;" type="image" name="remove_production['.urlencode($file).']" src="'.$del_image.'" alt="'.$del_text.'" title="'.$del_text.' '.htmlentities($file).'" onclick="javascript: return confirmation(\''.htmlentities($file).'\');" /></li>';
2051
                }
2052
            }
2053
            $production_list .= '</ul></div>';
2054
        }
@@ 2245-2247 (lines=3) @@
2242
            foreach ($extra_files as $file) {
2243
                $filename = substr($file, strlen($extra_field) + 1);
2244
                $extra_file_list .= '<li>'.Display::return_icon('archive.png').'<a href="'.$path.$extra_field.'/'.urlencode($filename).'" target="_blank">'.htmlentities($filename).'</a> ';
2245
                if ($showDelete) {
2246
                    $extra_file_list .= '<input style="width:16px;" type="image" name="remove_extra_'.$extra_field.'['.urlencode($file).']" src="'.$del_image.'" alt="'.$del_text.'" title="'.$del_text.' '.htmlentities($filename).'" onclick="javascript: return confirmation(\''.htmlentities($filename).'\');" /></li>';
2247
                }
2248
            }
2249
            $extra_file_list .= '</ul></div>';
2250
        }