Skip to content

Commit 5119609

Browse files
committed
minor fix
1 parent 1b58c8f commit 5119609

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

genbank/genbank.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ function parseReferences($ref_arr){
354354
if($field == "COORDINATES"){
355355
$tmp_coord = $matches[$i+1];
356356
preg_match('/.*\((.*)\)/', $tmp_coord, $matchesc);
357-
$tmp_ref[$field] = $matchesc[1];
357+
if(count($matchesc) && isset($matchesc[1])){
358+
$tmp_ref[$field] = $matchesc[1];
359+
}
358360
} else {
359361
$tmp_ref[$field] = $matches[$i+1];
360362
}

0 commit comments

Comments
 (0)