From c80530a6faf9e81d33d22395be6557b934d967b0 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Fri, 12 Jul 2024 01:14:28 +0300 Subject: [PATCH] fix rating order --- views/pages/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/pages/Photo.php b/views/pages/Photo.php index f4666fa..1e852fd 100644 --- a/views/pages/Photo.php +++ b/views/pages/Photo.php @@ -182,7 +182,7 @@ if ($photo->i('id') !== null) {
$id)); + $votespos = DB::query('SELECT * FROM photos_rates WHERE photo_id=:pid AND type=1 ORDER BY id DESC', array(':pid' => $id)); foreach ($votespos as $ps) { $uservote = new User($ps['user_id']); echo '