From 6e0976117a88a46464ff9d91927907b0657281c7 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 26 Mar 2010 17:42:34 +0000 Subject: [PATCH] Fix potential notice in wp_handle_sideload(). git-svn-id: http://svn.automattic.com/wordpress/trunk@13825 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 6e80d2e0d7..f552aff101 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -392,7 +392,7 @@ function wp_handle_sideload( &$file, $overrides = false ) { return $upload_error_handler( $file, __( 'Invalid form submission.' )); // A successful upload will pass this test. It makes no sense to override this one. - if ( $file['error'] > 0 ) + if ( ! empty( $file['error'] ) ) return $upload_error_handler( $file, $upload_error_strings[$file['error']] ); // A non-empty file will pass this test.