mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-28 12:30:44 +00:00
don't warn on empty child with attributes (e.g. field nodes)
This commit is contained in:
parent
4d658b082c
commit
d228600cf7
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user