From ba0f33ce82149827a84995250bd1eca9dbf65e9d Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 6 Jul 2009 16:41:44 +0000 Subject: Closes #1075: XML-RPC client behaving as per spec git-svn-id: https://code.elgg.org/elgg/trunk@3393 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/xml-rpc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/xml-rpc.php') 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': -- cgit v1.2.3