[freeside-commits] branch master updated. 3c6f0de5bf97a8a44e5d9e269629345305f87b1d

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


The branch, master has been updated
       via  3c6f0de5bf97a8a44e5d9e269629345305f87b1d (commit)
      from  abff127758a08cedc9bb323e1d973d27c0e2deb3 (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 3c6f0de5bf97a8a44e5d9e269629345305f87b1d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Sep 8 23:11:48 2013 -0700

    avoid warning noise

diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm
index 65a98d2..77b0137 100644
--- a/FS/FS/svc_phone.pm
+++ b/FS/FS/svc_phone.pm
@@ -527,7 +527,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