2
0
Prechádzať zdrojové kódy

Fix Zend_XmlRpc_Value nil parsing for PHP 5.4 and 5.5

Martin Hujer 12 rokov pred
rodič
commit
ddf50cfe61
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      library/Zend/XmlRpc/Value.php

+ 5 - 0
library/Zend/XmlRpc/Value.php

@@ -500,6 +500,11 @@ abstract class Zend_XmlRpc_Value
             }
         }
 
+        //if there is a child element, try to parse type for it
+        if (!$type && $value instanceof SimpleXMLElement) {
+            self::_extractTypeAndValue($value->children(), $type, $value);
+        }
+
         // If no type was specified, the default is string
         if (!$type) {
             $type = self::XMLRPC_TYPE_STRING;