1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-07 08:14:36 +02: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? //more cases?
default: default:
//FIXME - commented code breaks parsing of plugin.xml extended and userclass tags and possibly other xml files.
/*
// fix - empty SimpleXMLElement // fix - empty SimpleXMLElement
if(empty($xml->{$tag})) if(empty($xml->{$tag}))
{ {
@ -571,7 +575,7 @@ class xmlClass
else $ret[$tag] = ''; else $ret[$tag] = '';
break; break;
} }
*/
$count = $xml->{$tag}->count(); $count = $xml->{$tag}->count();
if($count >= 1) //array of elements - loop if($count >= 1) //array of elements - loop
{ {