diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-09-08 23:11:49 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-08 23:11:49 -0700 |
commit | b3d1c3b997841b5918c37720d440038dd9947410 (patch) | |
tree | 8459738542560587cf54957935b0cfd44df77239 | |
parent | 985c3b8c9f29f25c57e4ae8b01cc0e8d19a78405 (diff) |
avoid warning noise
-rw-r--r-- | FS/FS/svc_phone.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm index 5cd53122c..74e49d473 100644 --- a/FS/FS/svc_phone.pm +++ b/FS/FS/svc_phone.pm @@ -529,7 +529,7 @@ sub check { unless ( length($self->pin) ) { my $random_pin = $conf->config('svc_phone-random_pin'); - if ( $random_pin =~ /^\d+$/ ) { + if ( defined($random_pin) && $random_pin =~ /^\d+$/ ) { $self->pin( join('', map int(rand(10)), 0..($random_pin-1)) ); |