holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12418: LJSUP-12885: SMS notification - Add Taji...

Committer: akanashin
LJSUP-12885: SMS notification - Add Tajikistan
U   trunk/bin/misc/smsru_stats.pl
Modified: trunk/bin/misc/smsru_stats.pl
===================================================================
--- trunk/bin/misc/smsru_stats.pl	2012-08-06 05:33:20 UTC (rev 12417)
+++ trunk/bin/misc/smsru_stats.pl	2012-08-06 05:45:49 UTC (rev 12418)
@@ -265,15 +265,11 @@
 
     my $provider_name;
     for my $provider (keys %{$LJ::SMSRU{provider}}) {
-        my $code = $LJ::SMSRU{$provider}->{code};
+        my $code = $LJ::SMSRU{provider}->{$provider}->{code};
 
         my ($def) = $number =~ /^$code(\d\d\d)\d{7}$/;
 
-        unless ($def) {
-            warn "Invalid phone number: '$number'\n";
-            $PHONES{$number} = undef;
-            return undef;
-        }
+        next unless $def;
 
         $provider_name = $LJ::SMSRU{provider_by_code_def}->{$code.$def};
         if ($provider_name) {

Tags: akanashin, holyandrew, ljcom, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments