alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r23024: LJSUP-13821: Can't approve entry on mode...

Committer: afedorov
LJSUP-13821: Can't approve entry on moderation

U   trunk/htdocs/community/moderate.bml
Modified: trunk/htdocs/community/moderate.bml
===================================================================
--- trunk/htdocs/community/moderate.bml	2012-10-02 08:44:45 UTC (rev 23023)
+++ trunk/htdocs/community/moderate.bml	2012-10-02 10:10:05 UTC (rev 23024)
@@ -266,8 +266,10 @@
             $c->do("DELETE FROM modblob WHERE journalid=? AND modid=?",
                    undef, $c->{'userid'}, $modid);
 
-            my $entry = LJ::Entry->new($c->{'userid'}, jitemid => $req->{itemid});
-            $entry->set_prop("mod_queue_id", undef) if $entry;
+            if ( $req->{itemid} ) {
+                my $entry = LJ::Entry->new($c->{'userid'}, jitemid => $req->{itemid});
+                $entry->set_prop("mod_queue_id", undef) if $entry;
+            }
 
         # FALL THROUGH to showing the list of entries in this community
         } else {

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