$this->fetchNextRow();
// If there was no valid row there, try the next url (if any).
if (is_null($this->currentItem)) {
- if ($this->nextSource()) {
+ while ($this->nextSource()) {
$this->fetchNextRow();
+ if ($this->valid()) {
+ break;
+ }
}
}
if ($this->valid()) {