]> git.mjollnir.org Git - s9y.git/commitdiff
some backporting...
authornohn <nohn>
Wed, 13 Jul 2005 15:26:05 +0000 (15:26 +0000)
committernohn <nohn>
Wed, 13 Jul 2005 15:26:05 +0000 (15:26 +0000)
serendipity_xmlrpc.php

index 9883a269c853a0fc5f21e65310ef980251ba6401..05e9bb321d5a434c44a517adcdb2c2bc1bc04cde 100644 (file)
@@ -113,7 +113,7 @@ function blogger_getRecentPosts($message) {
     }
     $entries = serendipity_fetchEntries('', false, $numposts);
     $xml_entries_vals = array();
-    foreach ( $entries as $entry ) {
+    foreach ((array) $entries as $entry ) {
         $xml_entries_vals[] = new XML_RPC_Value(
             array(
                   'postid'      => new XML_RPC_Value($entry['id'], 'string'),
@@ -156,7 +156,7 @@ function mt_getCategoryList($message) {
     }
     $cats = serendipity_fetchCategories($serendipity['authorid']);
     $xml_entries_vals = array();
-    foreach ( $cats as $cat ) {
+    foreach ((array) $cats as $cat ) {
         $xml_entries_vals[] = new XML_RPC_Value(
             array(
               'categoryId'   => new XML_RPC_Value($cat['categoryid'], 'string'),
@@ -182,7 +182,7 @@ function metaWeblog_getRecentPosts($message) {
     $entries = serendipity_fetchEntries('', false, $numposts);
     $xml_entries_vals = array();
 
-    foreach ($entries as $tentry) {
+    foreach ((array)$entries as $tentry) {
         $entry = serendipity_fetchEntry('id', $tentry['id']);
         $xml_entries_vals[] = new XML_RPC_Value(
             array(
@@ -219,7 +219,7 @@ function mt_getRecentPostTitles($message) {
     }
     $entries = serendipity_fetchEntries('', false, $numposts);
     $xml_entries_vals = array();
-    foreach ($entries as $entry) {
+    foreach ((array)$entries as $entry) {
         $xml_entries_vals[] = new XML_RPC_Value(
             array(
                 'postid'      => new XML_RPC_Value($entry['id'], 'string'),