... |
... |
@@ -86,7 +86,7 @@ class SecureDownloadsController extends AbstractContentElementController
|
86 |
86 |
// Get member files for authenticated user
|
87 |
87 |
$strLocale = $request->getLocale();
|
88 |
88 |
$allowedDownload = StringUtil::trimsplit(',', strtolower(\Config::get('allowedDownload')));
|
89 |
|
- $UserFiles = $this->db->executeQuery("SELECT uuid FROM tl_member_secureDownloads WHERE pid = ?",[$this->User->id]);
|
|
89 |
+ $UserFiles = $this->db->executeQuery("SELECT uuid FROM tl_member_secureDownloads WHERE pid = ? ORDER BY ctime DESC",[$this->User->id]);
|
90 |
90 |
|
91 |
91 |
// Return if there are no files
|
92 |
92 |
if ($UserFiles->rowCount() < 1)
|