This commit is contained in:
Laurent Destailleur 2019-08-21 13:12:37 +02:00
parent eb0644c6f4
commit 70dc68426b

View File

@ -118,14 +118,14 @@ function create_script_table($list)
{ {
global $sortby,$langs; global $sortby,$langs;
if (GETPOT('order') == "asc" || GETPOST('order') =="desc") { if (GETPOT('order', 'alpha') == "asc" || GETPOST('order', 'alpha') == "desc") {
$order = GETPOST('order'); $order = GETPOST('order', 'alpha');
} else { } else {
$order = "asc"; $order = "asc";
} }
if (GETPOST('order')) { if (GETPOST('order', 'alpha')) {
switch (GETPOST('order')) { switch (GETPOST('order', 'alpha')) {
case "mtime": case "mtime":
case "size": case "size":
case "reloads": case "reloads":