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'};
}
});