diff --git a/xmlrpc.php b/xmlrpc.php index ee05245ddf57..49ac0ac9f69a 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -977,7 +977,7 @@ function mt_getPostCategories($args) { foreach($catids as $catid) { $categories[] = array( 'categoryName' => get_cat_name($catid), - 'categoryId' => $catid, + 'categoryId' => (string) $catid, 'isPrimary' => $isPrimary ); $isPrimary = false;