From 6d40d77615ba94709bb58790b9007546541132ab Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 29 Dec 2005 02:07:10 +0000 Subject: [PATCH] More wp_upload_bits() fixes. git-svn-id: http://svn.automattic.com/wordpress/trunk@3378 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 2 +- xmlrpc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 74a8ea065..f9d036fad 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -932,7 +932,7 @@ function wp_upload_bits($name, $type, $bits) { // Compute the URL $url = $upload['url'] . "/$filename"; - return array('file' => $new_file, 'url' => $url); + return array('file' => $new_file, 'url' => $url, 'error' => false); } ?> diff --git a/xmlrpc.php b/xmlrpc.php index bac38e11a..f3edb6443 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -853,7 +853,7 @@ class wp_xmlrpc_server extends IXR_Server { } $upload = wp_upload_bits($name, $type, $bits); - if ( $upload['error'] !== false ) { + if ( ! empty($upload['error']) ) { logIO('O', '(MW) Could not write file '.$name); return new IXR_Error(500, 'Could not write file '.$name); }