Update Items.php

This commit is contained in:
slawkens
2026-03-07 21:09:57 +01:00
parent e10ebed2f4
commit 02ce6b364b

View File

@@ -57,6 +57,12 @@ class Items
$attributes = []; $attributes = [];
foreach($node->xpath('attribute') as $attr) { foreach($node->xpath('attribute') as $attr) {
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; $attributes[strtolower($attr->attributes()->key)] = (string)$attr->attributes()->value;
} }