diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-09 18:25:27 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-07-09 18:25:27 +0000 |
commit | 86eec704e23d0b47b16a40d59d4b36090b47be19 (patch) | |
tree | cff622f8a09aaeb824ec1f77a9b92b40776b57cd | |
parent | 587a134c46dff887ebe745a29059c9f3f0cd63c2 (diff) | |
download | userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar.gz userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar.bz2 userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.tar.xz userdrake-86eec704e23d0b47b16a40d59d4b36090b47be19.zip |
(ValidInt) kill obvious warnings
-rwxr-xr-x | userdrake | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -783,9 +783,8 @@ sub Edit { $w->main } sub ValidInt { - my $m = 1; - foreach my $i (@_) { $i =~ /\d+/ or $m = 0 and last}; - return $m; + foreach my $i (@_) { $i =~ /\d+/ or return 0 }; + return 1; } sub ConvTime { my ($day, $month, $year) = @_; |