madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20549: LJSUP-10393: There is 500 error when ope...

Committer: sbelyaev
LJSUP-10393: There is 500 error when open calendar as owner by community on community page
U   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:

Tags: livejournal, madeon, pm, sbelyaev
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