ItemList/ExtendedCost
* restore internal list pointer after using iterator get extended costs
This commit is contained in:
parent
35aca18346
commit
b824bc54c2
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue