minor fix
This commit is contained in:
parent
34c68f956c
commit
dd9b5eb9ca
@ -423,7 +423,7 @@ class Data implements \ArrayAccess, \Countable, \IteratorAggregate
|
||||
if (isset($item[0])) {
|
||||
$stub->cut = $item[0];
|
||||
}
|
||||
$stub->value = $stub->cut + \count($this->data[$stub->position]);
|
||||
$stub->value = $stub->cut + ($stub->position ? \count($this->data[$stub->position]) : 0);
|
||||
|
||||
return $stub;
|
||||
}
|
||||
|
Reference in New Issue
Block a user