aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/xml-rpc.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-06 16:41:44 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-06 16:41:44 +0000
commitba0f33ce82149827a84995250bd1eca9dbf65e9d (patch)
treee3b2b7b6090f223fb54f49ad0b51975ac228f643 /engine/lib/xml-rpc.php
parent4a0550ccec3d77b2af34d77bc05f8eec27d81479 (diff)
downloadelgg-ba0f33ce82149827a84995250bd1eca9dbf65e9d.tar.gz
elgg-ba0f33ce82149827a84995250bd1eca9dbf65e9d.tar.bz2
Closes #1075: XML-RPC client behaving as per spec
git-svn-id: https://code.elgg.org/elgg/trunk@3393 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/xml-rpc.php')
-rw-r--r--engine/lib/xml-rpc.php6
1 files changed, 5 insertions, 1 deletions
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':