Skip to content
Snippets Groups Projects
Commit 3ef593cb authored by Artiom Neganov's avatar Artiom Neganov Committed by Mike Ryan
Browse files

Issue #2835062 by OnkelTem: XML plugin breaks on first empty source (urls)

parent 7d411562
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment