sort image reports by id (newest first)

This commit is contained in:
Shish 2018-11-10 12:03:05 +00:00
parent de2a688b5a
commit c74bd58207

View file

@ -209,7 +209,8 @@ class ReportImage extends Extension {
$all_reports = $database->get_all("
SELECT image_reports.*, users.name AS reporter_name
FROM image_reports
JOIN users ON reporter_id = users.id");
JOIN users ON reporter_id = users.id
ORDER BY image_reports.id DESC");
if(is_null($all_reports)) $all_reports = array();
$reports = array();