wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18114: LJSUP-6868. Minor fix

Committer: gprochaev
LJSUP-6868. Minor fix

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-01-26 09:06:57 UTC (rev 18113)
+++ trunk/cgi-bin/LJ/User.pm	2011-01-26 09:22:48 UTC (rev 18114)
@@ -6081,8 +6081,8 @@
     $opts->{'type'} = undef unless $opts->{'type'} =~ m/^(P|C|S)$/;
 
     my $ids = [];
-    my $a_ids = LJ::load_rel_target($u, 'A');
-    my $s_ids = LJ::load_rel_target($u, 'S');
+    my $a_ids = LJ::load_rel_target($u, 'A') || [];
+    my $s_ids = LJ::load_rel_target($u, 'S') || [];
     if ($opts->{'type'} eq 'S') {
         push @$ids, @$s_ids;
     } else {

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