diff --git a/includes/types/item.class.php b/includes/types/item.class.php index b0ec0583..61518a8f 100644 --- a/includes/types/item.class.php +++ b/includes/types/item.class.php @@ -88,6 +88,8 @@ class ItemList extends BaseType if ($this->error) return []; + $idx = $this->id; + if (empty($this->vendors)) { $itemz = []; @@ -257,6 +259,9 @@ class ItemList extends BaseType unset($result[$itemId]); } + // restore internal index; + $this->getEntry($idx); + return $result; }