From: garvinhicking Date: Thu, 4 Aug 2005 11:59:23 +0000 (+0000) Subject: Fix int conversion, wrong $postid. X-Git-Tag: 0.9~235 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9c619f8cbb5cc78701853ed91c864e90edc8ea37;p=s9y.git Fix int conversion, wrong $postid. --- diff --git a/serendipity_xmlrpc.php b/serendipity_xmlrpc.php index 222f0b9..c17fa0f 100644 --- a/serendipity_xmlrpc.php +++ b/serendipity_xmlrpc.php @@ -431,8 +431,8 @@ function metaWeblog_getPost($message) { 'permalink' => new XML_RPC_Value(serendipity_archiveURL($entry['id'], $entry['title'], 'baseURL', true, array('timestamp' => $entry['timestamp'])), 'string'), 'mt_excerpt' => new XML_RPC_Value($entry['excerpt'], 'string'), 'mt_text_more' => new XML_RPC_Value($entry['extended'], 'string'), - 'mt_allow_comments' => new XML_RPC_Value($entry['allow_comments'], 'int'), - 'mt_allow_pings' => new XML_RPC_Value($entry['mt_allow_pings'], 'int'), + 'mt_allow_comments' => new XML_RPC_Value(($entry['allow_comments'] == true ? 1 : 0), 'int'), + 'mt_allow_pings' => new XML_RPC_Value(($entry['mt_allow_pings'] == true ? 1 : 0), 'int'), 'mt_convert_breaks' => new XML_RPC_Value($entry['mt_convert_breaks'], 'string'), 'mt_keywords' => new XML_RPC_Value($entry['mt_keywords'], 'string')), 'struct');