From f5ab681a30ab4a0b01e03d15d1d2fb770bc7de2b Mon Sep 17 00:00:00 2001 From: Graham McVicker <mcvicker@sanger.ac.uk> Date: Tue, 10 Feb 2004 14:37:09 +0000 Subject: [PATCH] fixed bug in which undef was being returned from rearrange when zero should have been returned instead --- modules/Bio/EnsEMBL/Utils/Argument.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Utils/Argument.pm b/modules/Bio/EnsEMBL/Utils/Argument.pm index 4a86a0d9a5..2f3cc69dec 100644 --- a/modules/Bio/EnsEMBL/Utils/Argument.pm +++ b/modules/Bio/EnsEMBL/Utils/Argument.pm @@ -131,7 +131,7 @@ sub rearrange { # What we intend to do is loop through the @{$order} variable, # and for each value, we use that as a key into our associative # array, pushing the value at that key onto our return array. - return map {$param{uc("-$_")} || $param{uc($_)}} @$order; + return map {$param{uc("-$_")}} @$order; } 1; -- GitLab