- Made Weather Data asset more fault tollerant.

- Made CS related upgrades more fault tollerant.
 - Enhanced HTTP caching directives.
This commit is contained in:
JT Smith 2007-03-07 19:12:37 +00:00
parent 9031a17c35
commit 3a8bd77cde
6 changed files with 58 additions and 32 deletions

View file

@ -792,7 +792,12 @@ select sum(Post.rating) from Post
EOSQL
my ($sum) = $self->session->db->quickArray($ratingSumSQL, [$self->getId]);
$self->update({threadRating=>$sum});
$self->getParent->recalculateRating;
my $parent = $self->getParent;
if (defined $parent) {
$parent->recalculateRating;
} else {
$self->session->errorHandler->error("Couldn't get parent for thread ".$self->getId);
}
}