From 0f2498a0fa2d613135b6e4ce33583b2c8d55e854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 26 Apr 2024 15:04:43 +0200 Subject: [PATCH] Rewrite some stuff --- lib/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upload.php b/lib/upload.php index 51de746..e3bfe58 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -109,7 +109,7 @@ function listFiles($onlyMine = true): array if (!$onlyMine && !isModerator()) { $onlyMine = true; } - $query = "SELECT ID, Path, Type, UploadedAt, UploadedBy FROM Files"; + $query = "SELECT ID, Path, Type, UploadedAt, UploadedBy FROM Files ORDER BY UploadedAt DESC"; if ($onlyMine) { $query .= " WHERE UploadedBy = ?";