Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[ljcom] r12964: LJSUP-14406: Fix warnings in Suspicious ...

Committer: amyshkin
LJSUP-14406: Fix warnings in Suspicious Login Notification
U   trunk/cgi-bin/LJ/Hooks/Login.pm
Modified: trunk/cgi-bin/LJ/Hooks/Login.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Login.pm	2012-11-29 08:42:07 UTC (rev 12963)
+++ trunk/cgi-bin/LJ/Hooks/Login.pm	2012-11-29 08:43:40 UTC (rev 12964)
@@ -124,6 +124,7 @@
     if ( LJ::CheckLogin::is_suspicious($u) ) {
         my $id;
         $id = LJ::CheckLogin::save_stat( $u ) unless $LJ::DISABLED{'suspicious_login_statistics'};
+        return unless $id;
         LJ::CheckLogin::notify( $u, $id ) unless $LJ::DISABLED{'suspicious_login_notify'};
     }
 });

Tags: amyshkin, ljcom, pm, zilogic
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