fixed a bug reported on the site discussions

This commit is contained in:
JT Smith 2003-11-22 15:52:50 +00:00
parent 065918f360
commit c886694eb5
2 changed files with 3 additions and 1 deletions

View file

@ -110,7 +110,7 @@ Decrements the replies counter for this thread.
=cut
sub deccrementReplies {
sub decrementReplies {
my ($self) = @_;
WebGUI::SQL->write("update forumThread set replies=replies-1 where forumThreadId=".$self->get("forumThreadId"));
$self->getForum->decrementReplies;