diff --git a/ext/rating/main.php b/ext/rating/main.php index 90f5862ca..bd1f29dc9 100644 --- a/ext/rating/main.php +++ b/ext/rating/main.php @@ -226,9 +226,12 @@ public function onRatingSet(RatingSetEvent $event): void { if (empty($event->image['rating'])) { $old_rating = ""; + error_log("ratings: no old rating."); } else { $old_rating = $event->image['rating']; + error_log("ratings: old rating is ".$old_rating); } + error_log("ratings: calling set_rating for image ".$event->image.id.", new rating ".$event->rating.", old rating ".$old_rating); $this->set_rating($event->image->id, $event->rating, $old_rating); }