- confusing between valid() (current position is valid) and next() (next entry
is valid) is fixed before
Signed-off-by: Roland Häder <roland@mxchange.org>
$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();
$this->getResultInstance()->rewind();
// Search for it
- if ($this->getResultInstance()->next()) {
+ if ($this->getResultInstance()->valid()) {
// Entry found
$exists = true;
} // END - if
$this->getResultInstance()->rewind();
// Search for it
- if ($this->getResultInstance()->next()) {
+ if ($this->getResultInstance()->valid()) {
// Entry found
$exists = true;