summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-06-24 18:25:03 +0200
committerDerek Jones <derek.jones@ellislab.com>2009-06-24 18:25:03 +0200
commit7e39c0cdbaab7be5f8738ee964739e176d1639b7 (patch)
treeff40b39a640670d5e988c481bafb8e07c105c827
parentb8d3c3defbef3563889641bf4448eeaa51519e42 (diff)
fixed dateTime.iso8601 processing in XML-RPC class
-rw-r--r--system/libraries/Xmlrpc.php4
-rw-r--r--user_guide/changelog.html1
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: </p>
<li>Fixed a bug where the File Helper was using '/' instead of the DIRECTORY_SEPARATOR constant.</li>
<li>Fixed a bug to prevent PHP errors when attempting to use sendmail on servers that have manually disabled the PHP popen() function.</li>
<li>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.</li>
+ <li>Fixed a bug in the XML-RPC class with parsing dateTime.iso8601 data types.</li>
</ul>
<h2>Version 1.7.1</h2>