Committer: sbelyaev
LJSUP-10393: There is 500 error when open calendar as owner by community on community pageU trunk/cgi-bin/LJ/S2/DayPage.pm
Modified: trunk/cgi-bin/LJ/S2/DayPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/DayPage.pm 2011-11-16 08:32:06 UTC (rev 20548) +++ trunk/cgi-bin/LJ/S2/DayPage.pm 2011-11-16 08:53:35 UTC (rev 20549) @@ -95,6 +95,16 @@ LJ::load_log_props2($dbcr, $u->{'userid'}, \@itemids, \%logprops); $logtext = LJ::get_logtext2($u, @itemids); + my @ditems = (); + if (LJ::is_enabled("delayed_entries")) { + @ditems = LJ::DelayedEntry->get_entries_for_day($u, $year, $month, $day, $dateformat, $secwhere); + foreach my $ditem (@ditems) { + if ($ditem) { + push @items, $ditem; + } + } + } + my (%apu, %apu_lite); # alt poster users; UserLite objects foreach (@items) { next unless $_->{'posterid'} != $u->{'userid'}; @@ -108,17 +118,6 @@ # load tags my $tags = LJ::Tags::get_logtags($u, \@itemids); - my @ditems = (); - if (LJ::is_enabled("delayed_entries")) { - @ditems = LJ::DelayedEntry->get_entries_for_day($u, $year, $month, $day, $dateformat, $secwhere); - - foreach my $ditem (@ditems) { - if ($ditem) { - push @items, $ditem; - } - } - } - my $userlite_journal = UserLite($u); ENTRY: