From 39614a22c45477ada5b005207a4ba96eb7f86ca7 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 7 Mar 2026 21:16:17 +0100 Subject: [PATCH] Update Items.php --- system/src/Server/XML/Items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Server/XML/Items.php b/system/src/Server/XML/Items.php index 5f227e83..99c5ac23 100644 --- a/system/src/Server/XML/Items.php +++ b/system/src/Server/XML/Items.php @@ -57,13 +57,13 @@ class Items $attributes = []; foreach($node->xpath('attribute') as $attr) { + $attributes[strtolower($attr->attributes()->key)] = (string)$attr->attributes()->value; + if ($attr->xpath('attribute')) { foreach($attr->xpath('attribute') as $attr2) { $attributes[strtolower($attr2->attributes()->key)] = (string)$attr2->attributes()->value; } } - - $attributes[strtolower($attr->attributes()->key)] = (string)$attr->attributes()->value; } return [