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

[livejournal] r19655: LJSUP-9334: New auth system for external...

Committer: amyshkin
LJSUP-9334: New auth system for external domains (livejournal.sg)
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-08-09 06:34:01 UTC (rev 19654)
+++ trunk/cgi-bin/LJ/User.pm	2011-08-09 06:55:15 UTC (rev 19655)
@@ -348,7 +348,9 @@
         LJ::MemCache::set($key, $userid, $expire);
     }
 
-    return ($userid) if LJ::load_userid($userid);
+    my $u = LJ::load_userid($userid);
+    return $u if $u;
+    return undef;
 }
 
 # returns LJ::User class of a random user, undef if we couldn't get one

Tags: livejournal, 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