bugfix [ 947141 ] Bug in Forum - No Subject!!!

This commit is contained in:
JT Smith 2004-05-25 19:46:01 +00:00
parent 3d79a5e0b4
commit 205b2c3b5e
3 changed files with 8 additions and 1 deletions

View file

@ -383,6 +383,7 @@ Destroys this forum and everything it contains.
sub purge {
my ($self) = @_;
return unless ($self->get("forumId"));
my $a = WebGUI::SQL->read("select * from forumThread where forumId=".$self->get("forumId"));
while (my ($threadId) = $a->array) {
my $b = WebGUI::SQL->read("select * from forumPost where forumThreadId=".$threadId);