Committer: afedorov
LJSUP-13821: Can't approve entry on moderationU 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 {