Abe Hassan (burr86) wrote in changelog,
Abe Hassan
burr86
changelog

[livejournal] r12387: Verify that we actually got a user objec...

Committer: ahassan
Verify that we actually got a user object out of the load_userids response
U   trunk/htdocs/interests.bml
Modified: trunk/htdocs/interests.bml
===================================================================
--- trunk/htdocs/interests.bml	2007-08-31 21:08:57 UTC (rev 12386)
+++ trunk/htdocs/interests.bml	2007-08-31 21:42:11 UTC (rev 12387)
@@ -429,7 +429,7 @@
             my $updated = LJ::get_timeupdate_multi(@uids);
             my $us = LJ::load_userids(@uids);
             my @cl = sort { $updated->{$b->id} <=> $updated->{$a->id} || $a->user cmp $b->user }
-                     grep { $_->is_visible } values %$us;
+                     grep { $_ && $_->is_visible } values %$us;
 
             my $count = @cl;
             my $list;

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