[freeside-commits] branch FREESIDE_3_BRANCH updated. b3d1c3b997841b5918c37720d440038dd9947410

Ivan ivan at 420.am
Sun Sep 8 23:11:50 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  b3d1c3b997841b5918c37720d440038dd9947410 (commit)
      from  985c3b8c9f29f25c57e4ae8b01cc0e8d19a78405 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b3d1c3b997841b5918c37720d440038dd9947410
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Sep 8 23:11:49 2013 -0700

    avoid warning noise

diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm
index 5cd5312..74e49d4 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))
       );

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/svc_phone.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list