ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[ljcom] r10256: LJSUP-7762: Mail.ru connect

Committer: ssafronova
LJSUP-7762: Mail.ru connect
LJSUP-8217: E-mails mailusers should always be confirmed
LJSUP-8223: There is no username on commenting form
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-17 09:36:26 UTC (rev 10255)
+++ trunk/cgi-bin/LJ/Identity/MailRU.pm	2011-03-17 09:59:28 UTC (rev 10256)
@@ -101,8 +101,8 @@
 
     my ($bday, $bmonth, $byear) = ($userdata->{'birthday'} =~ /^(\d+)\.(\d+)\.(\d+)$/);
 
-    LJ::update_user($u, { name  => "$userdata->{'first_name'} $userdata->{'last_name'}",
-                          ( $bday and $bmonth and $byear ? (bdate => "$byear-$bmonth-$bday") : () ),
+    LJ::update_user($u, { ($userdata->{'first_name'} || $userdata->{'last_name'}) ? (name  => "$userdata->{'first_name'} $userdata->{'last_name'}") : (),
+                          ( ($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