--- /Users/satish/Desktop/wordpress/wp-includes/media.php	2012-10-11 18:59:42.000000000 +0530
+++ /Users/satish/Work/MyServer/swift-dev/wp-includes/media.php	2012-10-13 11:04:01.000000000 +0530
@@ -383,7 +383,7 @@
 	if ( $width || $height ) {
 		$editor = WP_Image_Editor::get_instance( $file );
 
-		if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) );
+		if ( is_wp_error( $editor ) || is_wp_error( $editor->resize( $width, $height, $crop ) ) )
 			return false;
 
 		$resized_file = $editor->save();
