From a13fd0af79cc06a76718a096e74b66379c4d7809 Mon Sep 17 00:00:00 2001 From: Giraffaman Date: Sat, 13 Apr 2024 00:02:37 +0200 Subject: [PATCH] --- ext/rating/main.php | 3 +++ 1 file changed, 3 insertions(+) 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); }