mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-31 21:51:46 +00:00
fix loop through children nodes
This commit is contained in:
parent
216e482009
commit
5fafb747f0
@ -109,7 +109,9 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
||||
else
|
||||
{
|
||||
$extension = (string) $xml->name;
|
||||
foreach ($xml->files->children as $child)
|
||||
if (isset($xml->files))
|
||||
{
|
||||
foreach ($xml->files->children() as $child)
|
||||
{
|
||||
if (isset($child[$type]))
|
||||
{
|
||||
@ -117,6 +119,7 @@ class JedcheckerRulesXMLinfo extends JEDcheckerRule
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$extension = strtolower(JFilterInput::getInstance()->clean($extension, 'cmd'));
|
||||
if ($type === 'component' && strpos($extension, 'com_') !== 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user