33
2
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:
Denis Ryabov 2021-02-24 00:06:02 +03:00
parent 216e482009
commit 5fafb747f0

View File

@ -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];
}
}
}
}