Skip to content

Commit

Permalink
Merge pull request #33 from tripal/31-tv3-fix_cont-error
Browse files Browse the repository at this point in the history
Fix continue in switch error
  • Loading branch information
bradfordcondon authored Apr 9, 2019
2 parents 9c9c485 + e973a05 commit 7a018de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/TripalImporter/BlastImporter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,12 @@ class BlastImporter extends TripalImporter {
if (count($feature_arr) > 1) {
watchdog('T_blastXML_load', "Ambiguous: '$feature' matches more than one " .
"feature and is being skipped", array(), WATCHDOG_ERROR);
continue;
continue 2;
}
if (count($feature_arr) == 0) {
watchdog('T_blastXML_load', "Failed: '$feature' cannot find a matching " ."
feature in the database.", array(), WATCHDOG_ERROR);
continue;
continue 2;
}
$feature_id = $feature_arr[0]->feature_id;

Expand All @@ -566,7 +566,7 @@ class BlastImporter extends TripalImporter {
if (!$feature_id) {
watchdog('T_blastXML_load', "Cannot add blast results as feature_id is missing.", array(),
WATCHDOG_ERROR);
continue;
continue 2;
}
// we are going to store the XML in the analysisfeatureprop table so we need to rebuild it.
$xml_content = "<Iteration>\n" . $iteration_tags_xml . " <$tag_name>\n";
Expand Down Expand Up @@ -616,7 +616,7 @@ class BlastImporter extends TripalImporter {
if (!$result) {
watchdog('T_blastXML_load', "Cannot add analysis feature record for $feature.", array(),
WATCHDOG_ERROR);
continue;
continue 2;
}
$analysisfeature_id = $result['analysisfeature_id'];
}
Expand All @@ -633,7 +633,7 @@ class BlastImporter extends TripalImporter {
if (!$success) {
watchdog('T_blastXML_load', "Cannot update analysis feature property record for $feature.", array(),
WATCHDOG_ERROR);
continue;
continue 2;
}
}
// if the analyisfeatureprop record doesn't exist then add it
Expand All @@ -650,7 +650,7 @@ class BlastImporter extends TripalImporter {
if (!$analysisfeatureprop) {
watchdog('T_blastXML_load', "Cannot add analysis feature property record.", array(),
WATCHDOG_ERROR);
continue;
continue 2;
}
}
// if the user wants to store the keywords then do so
Expand Down

0 comments on commit 7a018de

Please sign in to comment.