From 7e39c0cdbaab7be5f8738ee964739e176d1639b7 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 24 Jun 2009 16:25:03 +0000 Subject: fixed dateTime.iso8601 processing in XML-RPC class --- system/libraries/Xmlrpc.php | 4 ++-- user_guide/changelog.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php index 2022a7eba..4b3470c34 100644 --- a/system/libraries/Xmlrpc.php +++ b/system/libraries/Xmlrpc.php @@ -38,7 +38,7 @@ class CI_Xmlrpc { var $xmlrpcBoolean = 'boolean'; var $xmlrpcDouble = 'double'; var $xmlrpcString = 'string'; - var $xmlrpcDateTime = 'datetime.iso8601'; + var $xmlrpcDateTime = 'dateTime.iso8601'; var $xmlrpcBase64 = 'base64'; var $xmlrpcArray = 'array'; var $xmlrpcStruct = 'struct'; @@ -231,7 +231,7 @@ class CI_Xmlrpc { { if (is_array($value) && isset($value['0'])) { - if ( ! isset($value['1']) OR ! isset($this->xmlrpcTypes[strtolower($value['1'])])) + if ( ! isset($value['1']) OR (! isset($this->xmlrpcTypes[$value['1']]) && ! isset($this->xmlrpcTypes[strtolower($value['1'])]))) { if (is_array($value[0])) { diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 9db5c1506..0e1277999 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -97,6 +97,7 @@ SVN Revision:

  • Fixed a bug where the File Helper was using '/' instead of the DIRECTORY_SEPARATOR constant.
  • Fixed a bug to prevent PHP errors when attempting to use sendmail on servers that have manually disabled the PHP popen() function.
  • Fixed a bug that would cause PHP errors in XML-RPC data if the PHP data type did not match the specified XML-RPC type.
  • +
  • Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data types.
  • Version 1.7.1

    -- cgit v1.2.3-24-g4f1b