1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Issue #371 - quick fix for forum extended fields.

This commit is contained in:
Cameron 2013-06-03 03:05:59 -07:00
parent 46955b8e68
commit 15656e7ccb

View File

@ -561,6 +561,10 @@ class xmlClass
//more cases?
default:
//FIXME - commented code breaks parsing of plugin.xml extended and userclass tags and possibly other xml files.
/*
// fix - empty SimpleXMLElement
if(empty($xml->{$tag}))
{
@ -571,7 +575,7 @@ class xmlClass
else $ret[$tag] = '';
break;
}
*/
$count = $xml->{$tag}->count();
if($count >= 1) //array of elements - loop
{