mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-23 00:50:58 +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">
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue