Skip to content

Commit

Permalink
[#124 state:committed] Fixing perl warning: Argument "" isn't numeric…
Browse files Browse the repository at this point in the history
… in numeric

lt (<) at /var/www/html/melody/extlib/Locale/Maketext.pm line 62.

Signed-off-by: Open Melody Software Group <admin@openmelody.org>
  • Loading branch information
Mixel authored and Open Melody Software Group committed Aug 14, 2009
1 parent 2a81080 commit 5c85b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extlib/Locale/Maketext.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ my %isa_scan = ();

sub quant {
my($handle, $num, @forms) = @_;

return $num if @forms == 0; # what should this mean?
$num ||=0;
return $forms[2] if @forms > 2 and $num == 0; # special zeroth case

# Normal case:
Expand Down

0 comments on commit 5c85b5b

Please sign in to comment.