Yaffs site version 1.1
[yaffs-website] / web / modules / contrib / migrate_plus / src / DataParserPluginBase.php
index a36788a9a5d2ead3d3eb0e3dafa9765b3b26f087..a1e4c2dd3ea1f7a5b91b3e56e5c9fe5b17cbd0ed 100644 (file)
@@ -110,8 +110,11 @@ abstract class DataParserPluginBase extends PluginBase implements DataParserPlug
     $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()) {