fix rating order

This commit is contained in:
themohooks 2024-07-12 01:14:28 +03:00
parent 06e7bd0000
commit c80530a6fa

View file

@ -182,7 +182,7 @@ if ($photo->i('id') !== null) {
<div id="votes" class="votes"> <div id="votes" class="votes">
<table class="vblock pro"> <table class="vblock pro">
<?php <?php
$votespos = DB::query('SELECT * FROM photos_rates WHERE photo_id=:pid AND type=1', array(':pid' => $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) { foreach ($votespos as $ps) {
$uservote = new User($ps['user_id']); $uservote = new User($ps['user_id']);
echo ' <tr> echo ' <tr>