From ba625835153e059db824923c4ed6c7858e41a930 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Fri, 27 Jun 2008 07:26:31 +0000 Subject: [PATCH] - Patch #245961 boombatower: fixed exceptions in XML-RPC library. --- includes/xmlrpc.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc index c01f8e47b275..4895e9802a0b 100644 --- a/includes/xmlrpc.inc +++ b/includes/xmlrpc.inc @@ -67,10 +67,10 @@ function xmlrpc_value_calculate_type(&$xmlrpc_value) { return empty($xmlrpc_value->data) || range(0, count($xmlrpc_value->data) - 1) === array_keys($xmlrpc_value->data) ? 'array' : 'struct'; } if (is_object($xmlrpc_value->data)) { - if ($xmlrpc_value->data->is_date) { + if (isset($xmlrpc_value->data->is_date)) { return 'date'; } - if ($xmlrpc_value->data->is_base64) { + if (isset($xmlrpc_value->data->is_base64)) { return 'base64'; } $xmlrpc_value->data = get_object_vars($xmlrpc_value->data); -- GitLab