Skip to content
Snippets Groups Projects
Commit 9660b57c authored by Ian Longden's avatar Ian Longden
Browse files

Do not crash if the external_db_id is not given.

parent 381a9227
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,7 @@ sub external_db_name{
my $self = shift;
my $handle = $self->{'adaptor'};
if(defined($handle)){
if(defined($handle) and defined($self->{'external_db_id'})){
my $sth = $handle->prepare("select db_name from external_db where external_db_id = ".$self->{'external_db_id'});
$sth->execute();
my $name;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment