[livejournal] r18122: LJSUP-7802. Selection list of users is n...

Committer: gprochaev
LJSUP-7802. Selection list of users is not displayed correctly if the user does not have community

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-01-27 06:18:43 UTC (rev 18121)
+++ trunk/cgi-bin/LJ/User.pm	2011-01-27 07:57:48 UTC (rev 18122)
@@ -6087,9 +6087,10 @@
         my $a_ids = LJ::load_rel_target($u, 'A') || [];
         push @$ids, @$a_ids;
     }
-    return unless $ids && @$ids;
-    $opts->{'type'} = 'C' if $opts->{'type'} eq 'S';
+    return $u->{'user'} unless $ids && @$ids;
 
+    $opts->{'type'} = '' if $opts->{'type'} eq 'S';
+
     # load_userids_multiple
     my %users;
     LJ::load_userids_multiple([ map { $_, \$users{$_} } @$ids ], [$u]);