$this->getResultInstance()->rewind();
// Do we have an entry?
- if ($this->getResultInstance()->next()) {
+ if ($this->getResultInstance()->valid()) {
// Get the entry
$currEntry = $this->getResultInstance()->current();
$this->getResultInstance()->rewind();
// Do we have an entry?
- if ($this->getResultInstance()->next()) {
+ if ($this->getResultInstance()->valid()) {
// Get the entry
$currentEntry = $this->getResultInstance()->current();