mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-29 04:42:36 +00:00
fix loop through children nodes
This commit is contained in:
parent
216e482009
commit
5fafb747f0
@ -109,11 +109,14 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
||||
else
|
||||
{
|
||||
$extension = (string) $xml->name;
|
||||
foreach ($xml->files->children as $child)
|
||||
if (isset($xml->files))
|
||||
{
|
||||
if (isset($child[$type]))
|
||||
foreach ($xml->files->children() as $child)
|
||||
{
|
||||
$extension = (string) $child[$type];
|
||||
if (isset($child[$type]))
|
||||
{
|
||||
$extension = (string) $child[$type];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user