Fix Call to a member function count() on null

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu 2026-02-22 16:31:56 +01:00
parent 3f658b8e15
commit e7f5fc437e

View File

@ -229,7 +229,7 @@ class ImportXml extends ImportPlugin
/**
* Only attempt to analyze/collect data if there is data present
*/
if ($xml && $xml->children()->count()) {
if ($xml && $xml->count()) {
$data_present = true;
/**