Skip to content

Commit

Permalink
Item247: Fixed warning when value isn't defined
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@856 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Nov 22, 2008
1 parent c6ae85f commit 90cc235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Types/NUMBER.pm
Expand Up @@ -27,7 +27,7 @@ sub string2value {
sub equals {
my ( $this, $val, $def ) = @_;

return $val + 1 == $def + 1;
return ( $val || 0 ) == ( $def || 0 );
}

1;
Expand Down

0 comments on commit 90cc235

Please sign in to comment.