From bdd6d959a20768565f794595a63884080b0c95e2 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 15 Feb 2024 12:29:10 +0400 Subject: [PATCH] bug --- nur_src/data/types/Metadata.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nur_src/data/types/Metadata.php b/nur_src/data/types/Metadata.php index e40ab67..2c9871e 100644 --- a/nur_src/data/types/Metadata.php +++ b/nur_src/data/types/Metadata.php @@ -803,7 +803,10 @@ class Metadata implements IParametrable { if ($items === null) return; $index = 0; foreach ($items as $key => &$item) { - if ($key === $index++) $key = null; + if ($key === $index) { + $key = null; + $index++; + } $this->ensureSchema($item, $key, $params); }; unset($item); }