From 574f965d7856f12d87b37e0be536473e34a5936d Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 13 Jul 2005 02:03:02 +0000 Subject: test value only if defined --- samba_wizard/Sambashare.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba_wizard/Sambashare.pm b/samba_wizard/Sambashare.pm index d81fcbe2..ddf4fabf 100755 --- a/samba_wizard/Sambashare.pm +++ b/samba_wizard/Sambashare.pm @@ -233,7 +233,7 @@ $o->{pages} = { ], complete => sub { map { - if ($_ !~ /^\d+$/) { + if ($_ and $_ !~ /^\d+$/) { $::in->ask_warn(N("Error"), N("Create mask, force directory mode and force create mode should be numeric. ie: 0755.")) and return 1; } } $o->{var}{wiz_share_create_mask}, $o->{var}{wiz_share_force_directory_mode}, $o->{var}{wiz_share_force_create_mode}; -- cgit v1.2.1