ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r10319: LJSUP-7762: Mail.ru connect - LJSUP-8408...

Committer: ssafronova
LJSUP-7762: Mail.ru connect - LJSUP-8408: No need to complete the data if we do not get this data from the mail.ru
U   trunk/cgi-bin/LJ/Identity/MailRU.pm
Modified: trunk/cgi-bin/LJ/Identity/MailRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Identity/MailRU.pm	2011-03-29 05:25:44 UTC (rev 10318)
+++ trunk/cgi-bin/LJ/Identity/MailRU.pm	2011-03-29 06:40:36 UTC (rev 10319)
@@ -102,7 +102,7 @@
 
     my ($bday, $bmonth, $byear) = ($userdata->{'birthday'} =~ /^(\d+)\.(\d+)\.(\d+)$/);
 
-    LJ::update_user($u, { ($userdata->{'first_name'} || $userdata->{'last_name'}) ? (name  => "$userdata->{'first_name'} $userdata->{'last_name'}") : (),
+    LJ::update_user($u, { name => (($userdata->{'first_name'} || $userdata->{'last_name'}) ? "$userdata->{'first_name'} $userdata->{'last_name'}" : $userdata->{'nick'}),
                           ( ($bday and $bmonth and $byear) ? (bdate => "$byear-$bmonth-$bday") : () ),
                           opt_gettalkemail => 'N',
                           status           => 'A', # we don't care, set it as validated as well

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