1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fixed: Download sort pref was breaking download-list sql query.

This commit is contained in:
Cameron
2013-10-27 12:37:38 -07:00
parent 337cb70816
commit d39ed3455a

View File

@@ -37,10 +37,12 @@ class download
$pref = e107::getPref();
$tmp = explode('.', e_QUERY);
$order = str_replace("download_","",$pref['download_order']);
// Set Defaults
$this->qry['action'] = 'maincats';
$this->qry['order'] = vartrue($pref['download_order'],'download_datestamp');
$this->qry['order'] = vartrue($order, 'datestamp');
$this->qry['sort'] = vartrue($pref['download_sort'], 'desc');
$this->qry['view'] = vartrue($pref['download_view'], 10);
$this->qry['from'] = 0;