madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21626: LJSUP-11610: Scheduled entries: 500 erro...

Committer: sbelyaev
LJSUP-11610: Scheduled entries: 500 error when try open not your community
U   trunk/htdocs/manage/scheduled_posts.bml
Modified: trunk/htdocs/manage/scheduled_posts.bml
===================================================================
--- trunk/htdocs/manage/scheduled_posts.bml	2012-04-03 13:57:53 UTC (rev 21625)
+++ trunk/htdocs/manage/scheduled_posts.bml	2012-04-04 06:00:30 UTC (rev 21626)
@@ -42,7 +42,8 @@
     my $viewsome = !!$is_admin;
     my $viewall  = ($can_viewall && $GET{'viewall'} == 1);
 
-    if ($viewall) {
+    if ($viewalli && $usejournal_u) {
+        
         LJ::statushistory_add( $usejournal_u->userid,
                                $remote->userid,
                                "viewall",
@@ -184,6 +185,7 @@
         $ret .= '</a>';
         $ret .="</div>";
     }
+
     $ret .= $entry_chooser->( \@recent_entries,
                                 first_page   => $skip ? 0 : 1,
                                 prev         => $skip > $items_per_page ? $skip - $items_per_page : 0,

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