From 122bb8673611b491ee2878c779b86c9028056354 Mon Sep 17 00:00:00 2001 From: Jacques Dainat Date: Thu, 28 Mar 2019 15:15:10 +0100 Subject: [PATCH] Fix Codon Table 0 (strict) that was not selectable [BUG] Table 0 (strict) was shifted in table 1, because value 0 is false in the test. Fixed by changing if statement. --- lib/Bio/Tools/CodonTable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Bio/Tools/CodonTable.pm b/lib/Bio/Tools/CodonTable.pm index d725558ea..315c541d4 100644 --- a/lib/Bio/Tools/CodonTable.pm +++ b/lib/Bio/Tools/CodonTable.pm @@ -329,7 +329,7 @@ sub new { )], @args); - $id = 1 if ( ! $id ); + $id = 1 if ( ! defined ( $id ) ); $id && $self->id($id); return $self; # success - we hope! } -- 2.11.4.GIT