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 '