diff --git a/include/client/tickets.inc.php b/include/client/tickets.inc.php index db0f20f60e534e41b33ad97ea4c363d49fb56d63..10c466ffb536ee13e226f84cd3f2944dc7a5f356 100644 --- a/include/client/tickets.inc.php +++ b/include/client/tickets.inc.php @@ -47,8 +47,10 @@ if($sort && $sortOptions[$sort]) $order_by =$sortOptions[$sort]; $order_by=$order_by ?: $sortOptions['date']; -if($_REQUEST['order'] && $orderWays[strtoupper($_REQUEST['order'])]) - $order=$orderWays[strtoupper($_REQUEST['order'])]; +if ($_REQUEST['order'] && $orderWays[strtoupper($_REQUEST['order'])]) + $order = $orderWays[strtoupper($_REQUEST['order'])]; +else + $order = $orderWays['DESC']; $x=$sort.'_sort'; $$x=' class="'.strtolower($_REQUEST['order'] ?: 'desc').'" ';