projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
985c3b8
)
avoid warning noise
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 9 Sep 2013 06:11:49 +0000
(23:11 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 9 Sep 2013 06:11:49 +0000
(23:11 -0700)
FS/FS/svc_phone.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_phone.pm
b/FS/FS/svc_phone.pm
index
5cd5312
..
74e49d4
100644
(file)
--- 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))
);