sort image reports by id (newest first)
This commit is contained in:
parent
de2a688b5a
commit
c74bd58207
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue