33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +00:00

don't warn on empty child with attributes (e.g. field nodes)

This commit is contained in:
Denis Ryabov 2021-02-24 15:59:20 +03:00
parent 4d658b082c
commit d228600cf7

View File

@ -282,7 +282,7 @@ class JedcheckerRulesXMLManifest extends JEDcheckerRule
// 3) check empty elements
foreach ($node as $child)
{
if ($child->count() === 0 && (string) $child === '')
if ($child->count() === 0 && $child->attributes()->count() === 0 && (string) $child === '')
{
$this->infos[] = JText::sprintf('COM_JEDCHECKER_MANIFEST_EMPTY_CHILD', $child->getName());
}