Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

+14 -11
View File
@@ -1,19 +1,22 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* XML Handler: Rewritten for PHP5
* By Matt Mecham
* Last Updated: $Date: 2009-08-06 12:51:21 -0400 (Thu, 06 Aug 2009) $
* Last Updated: $Date: 2010-09-15 19:24:25 -0400 (Wed, 15 Sep 2010) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Services Kernel
* @link http://www.iinvisionpower.com
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Kernel
* @link http://www.invisionpower.com
* @since 25th February 2004
* @version $Revision: 307 $
* @version $Revision: 464 $
*
*
* Example Usage:
@@ -489,7 +492,7 @@ class classXML
if ( $node->nodeType == XML_TEXT_NODE )
{
$_xmlArray = $node->nodeValue;
$_xmlArray = $this->_xmlToOutput( $node->nodeValue );
}
else if ( $node->nodeType == XML_CDATA_SECTION_NODE )
{
@@ -519,7 +522,7 @@ class classXML
{
if ( $nc->nodeName != '#text' AND $nc->nodeName != '#cdata-section' )
{
$occurance[ $nc->nodeName ]++;
$occurance[ $nc->nodeName ] = isset($occurance[ $nc->nodeName ]) ? $occurance[ $nc->nodeName ] + 1 : 1;
}
}
@@ -533,13 +536,13 @@ class classXML
$_name = '#alltext';
}
if ( $occurance[ $child->nodeName ] > 1 )
if ( isset($occurance[ $child->nodeName ]) AND $occurance[ $child->nodeName ] > 1 )
{
$_xmlArray[ $_name ][] = $this->_fetchXMLAsArray( $child, $ignoreDOMTags );
$_xmlArray[ $_name ][] = $this->_fetchXMLAsArray( $child );
}
else
{
$_xmlArray[ $_name ] = $this->_fetchXMLAsArray( $child, $ignoreDOMTags );
$_xmlArray[ $_name ] = $this->_fetchXMLAsArray( $child );
}
}
}