From 2b39b9b762c9458d42c90ff67c57a070a0bff81d Mon Sep 17 00:00:00 2001
From: Daniel Rios <dr2@sanger.ac.uk>
Date: Tue, 21 Feb 2006 15:34:33 +0000
Subject: [PATCH] Modified to return a reference to a list of objects, not a
 reference to a list of references

---
 modules/Bio/EnsEMBL/DBSQL/MergedAdaptor.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/MergedAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/MergedAdaptor.pm
index 472bf5b1c7..aac4a2ac1b 100644
--- a/modules/Bio/EnsEMBL/DBSQL/MergedAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/MergedAdaptor.pm
@@ -150,7 +150,7 @@ sub AUTOLOAD {
     my $ref;
     if($adaptor->can($sub)){
       $ref = $adaptor->$sub(@args);
-      push @array_return, $ref;
+      push @array_return, @{$ref};
     }
     else{ # end of can
       warn("In Merged Adaptor $adaptor cannot call sub $sub");
-- 
GitLab