mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 16:41:17 +03:00
fix rating order
This commit is contained in:
parent
06e7bd0000
commit
c80530a6fa
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ if ($photo->i('id') !== null) {
|
|||
<div id="votes" class="votes">
|
||||
<table class="vblock pro">
|
||||
<?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) {
|
||||
$uservote = new User($ps['user_id']);
|
||||
echo ' <tr>
|
||||
|
|
Loading…
Reference in a new issue