From 1513aecfab09efa21384bcee7358239d59cb02d7 Mon Sep 17 00:00:00 2001 From: Web Admin <w3adm@sanger.ac.uk> Date: Mon, 25 Jul 2005 17:24:03 +0000 Subject: [PATCH] fixed --- modules/Bio/EnsEMBL/Registry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Registry.pm b/modules/Bio/EnsEMBL/Registry.pm index c622366b42..1c0be9747c 100644 --- a/modules/Bio/EnsEMBL/Registry.pm +++ b/modules/Bio/EnsEMBL/Registry.pm @@ -728,7 +728,7 @@ sub set_disconnect_when_inactive{ =cut sub disconnect_all { - foreach my $dba ( get_all_DBAdaptors() ){ + foreach my $dba ( @{get_all_DBAdaptors()||[]} ){ my $dbc = $dba->dbc; #disconnect if connected $dbc->disconnect_if_idle() if $dbc->connected(); -- GitLab