sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r23067: LJSUP-13874: Error fixed in get_users fu...

Committer: vtroitsky
LJSUP-13874: Error fixed in get_users function.
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-10-08 13:55:09 UTC (rev 23066)
+++ trunk/cgi-bin/LJ/User.pm	2012-10-09 07:06:45 UTC (rev 23067)
@@ -10491,12 +10491,14 @@
     return ($userid+0);
 }
 
+# TODO: Rewrite that function in more optimal way!
 sub get_userid_multi {
     my($users) = @_;
     my @res;
 
     for my $user ( @$users ) {
-        push @res, LJ::get_userid( $user );
+        my $userid = LJ::get_userid( $user );
+        push @res, $userid if $userid;
     }
 
     return @res;

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