Fix potential notice in wp_handle_sideload().

git-svn-id: http://svn.automattic.com/wordpress/trunk@13825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-03-26 17:42:34 +00:00
parent 6dcc05bd54
commit 6e0976117a
1 changed files with 1 additions and 1 deletions

View File

@ -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.