Code Duplication    Length = 5-5 lines in 2 locations

htdocs/lib2/logic/user.class.php 2 locations

@@ 1449-1453 (lines=5) @@
1446
                    if (!imagejpeg($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn", 75)) {
1447
                        return "save thumb failed [$ext]";
1448
                    }
1449
                } elseif ($ext == 'png') {
1450
                    if (!imagepng($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn", 4)) {
1451
                        return "save thumb failed [$ext]";
1452
                    }
1453
                } elseif ($ext == 'gif') {
1454
                    if (!imagegif($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) {
1455
                        return "save thumb failed [$ext]";
1456
                    }
@@ 1457-1461 (lines=5) @@
1454
                    if (!imagegif($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) {
1455
                        return "save thumb failed [$ext]";
1456
                    }
1457
                } elseif ($ext == 'bmp') {
1458
                    if (!imagebmp($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) {
1459
                        return "save thumb failed [$ext]";
1460
                    }
1461
                } else {
1462
                    return "save thumb failed [$ext], unknown extension";
1463
                }
1464
            }