Fix notice (walker/not a valid index(0)) when index is composed of one entry
This commit is contained in:
parent
d7c5a410bf
commit
24596571c7
@ -254,7 +254,7 @@
|
|||||||
$this->prevkey = null;
|
$this->prevkey = null;
|
||||||
if ($this->walker->valid) {
|
if ($this->walker->valid) {
|
||||||
$this->walker->next();
|
$this->walker->next();
|
||||||
$this->nextkey = $this->walker->current_key();
|
$this->nextkey = $this->walker->valid? $this->walker->current_key() : null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->prevkey = $prevkey;
|
$this->prevkey = $prevkey;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user