Committer: gprochaev
LJSUP-6605. user can send userhead to communityU trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm 2010-08-25 11:02:11 UTC (rev 9395) +++ trunk/cgi-bin/LJ/Widget/Shop/View/UserHeads.pm 2010-08-25 11:23:05 UTC (rev 9396) @@ -37,6 +37,7 @@ my $remote = LJ::get_remote(); my $gift = ((!$remote || LJ::Request->get_param('gift'))) || 0; my $recipient = $gift ? LJ::load_user(LJ::Request->get_param('giftto')) : undef; + $recipient = undef if $recipient && !$recipient->is_person; my ($sec, $min, $hour, $mday, $mon, $year) = localtime(time);