Code Duplication    Length = 4-4 lines in 3 locations

htdocs/modules/system/class/thumbs/phpthumb.class.php 3 locations

@@ 2270-2273 (lines=4) @@
2267
						$this->useRawIMoutput = true;
2268
						$this->DebugMessage('$this->useRawIMoutput set to TRUE because '.@$ImageCreateFunction.'('.$IMtempfilename.') failed', __FILE__, __LINE__);
2269
					}
2270
					if (file_exists($IMtempfilename)) {
2271
						$this->DebugMessage('deleting "'.$IMtempfilename.'"', __FILE__, __LINE__);
2272
						@unlink($IMtempfilename);
2273
					}
2274
					return true;
2275
2276
				}
@@ 2277-2280 (lines=4) @@
2274
					return true;
2275
2276
				}
2277
				if (file_exists($IMtempfilename)) {
2278
					$this->DebugMessage('deleting "'.$IMtempfilename.'"', __FILE__, __LINE__);
2279
					@unlink($IMtempfilename);
2280
				}
2281
2282
			} elseif ($this->issafemode) {
2283
				$this->DebugMessage('ImageMagickThumbnailToGD() aborting because PHP safe_mode is enabled and phpThumb_tempnam() failed', __FILE__, __LINE__);
@@ 2286-2289 (lines=4) @@
2283
				$this->DebugMessage('ImageMagickThumbnailToGD() aborting because PHP safe_mode is enabled and phpThumb_tempnam() failed', __FILE__, __LINE__);
2284
				$this->useRawIMoutput = false;
2285
			} else {
2286
				if (file_exists($IMtempfilename)) {
2287
					$this->DebugMessage('deleting "'.$IMtempfilename.'"', __FILE__, __LINE__);
2288
					@unlink($IMtempfilename);
2289
				}
2290
				$this->DebugMessage('ImageMagickThumbnailToGD() aborting, phpThumb_tempnam() failed', __FILE__, __LINE__);
2291
			}
2292
		} else {