From: <var...@us...> - 2010-01-22 13:53:53
|
Revision: 7284 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7284&view=rev Author: vargenau Date: 2010-01-22 13:52:52 +0000 (Fri, 22 Jan 2010) Log Message: ----------- Verify that a parameter is an object before attempting to get his class (for PHP 5 migration) Modified Paths: -------------- trunk/lib/XmlElement.php Modified: trunk/lib/XmlElement.php =================================================================== --- trunk/lib/XmlElement.php 2010-01-18 19:13:06 UTC (rev 7283) +++ trunk/lib/XmlElement.php 2010-01-22 13:52:52 UTC (rev 7284) @@ -40,7 +40,7 @@ } function _pushContent ($item) { - if (strtolower(get_class($item)) == 'xmlcontent') + if (is_object($item) && strtolower(get_class($item)) == 'xmlcontent') array_splice($this->_content, count($this->_content), 0, $item->_content); else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |