From: marcus Date: Mon, 6 Jul 2009 16:41:44 +0000 (+0000) Subject: Closes #1075: XML-RPC client behaving as per spec X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ba0f33ce82149827a84995250bd1eca9dbf65e9d;p=lorea%2Felgg.git Closes #1075: XML-RPC client behaving as per spec git-svn-id: https://code.elgg.org/elgg/trunk@3393 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/lib/xml-rpc.php b/engine/lib/xml-rpc.php index 4aaf4430b..cc7a26be1 100644 --- a/engine/lib/xml-rpc.php +++ b/engine/lib/xml-rpc.php @@ -440,11 +440,15 @@ case 'struct': foreach ($object->children as $child) { - $value[$child->children[0]->content] = xmlrpc_scalar_value($child->children[1]->children[0]); + if (isset($child->children[1]->children[0])) + $value[$child->children[0]->content] = xmlrpc_scalar_value($child->children[1]->children[0]); + else + $value[$child->children[0]->content] = $child->children[1]->content; } return $value; case 'boolean': return (boolean) $object->content; + case 'i4': case 'int': return (int) $object->content; case 'double':