Fix notice (walker/not a valid index(0)) when index is composed of one entry

This commit is contained in:
real_nowhereman 2010-08-22 16:42:47 +00:00
parent d7c5a410bf
commit 24596571c7

View File

@ -254,7 +254,7 @@
$this->prevkey = null;
if ($this->walker->valid) {
$this->walker->next();
$this->nextkey = $this->walker->current_key();
$this->nextkey = $this->walker->valid? $this->walker->current_key() : null;
}
} else {
$this->prevkey = $prevkey;