diff --git a/tickets.php b/tickets.php index d15944e6..057f44bc 100644 --- a/tickets.php +++ b/tickets.php @@ -36,17 +36,15 @@ $disp = "ASC"; } - // Ticket status from GET - if (isset($_GET['status']) && ($_GET['status']) == 'Open') { - $status = 'Open'; + //Ticket status from GET + if(isset($_GET['status']) && ($_GET['status']) == 'Open'){ + $status = 'Open'; + }elseif(isset($_GET['status']) && ($_GET['status']) == 'Closed'){ + $status = 'Closed'; + }else{ + $status = '%'; } - elseif (isset($_GET['status']) && ($_GET['status']) == 'Closed') { - $status = 'Closed'; - } - else { - $status = '%'; - } - if(isset($_GET['status'])) { + if(isset($_GET['status'])){ unset($_GET['status']); } @@ -117,6 +115,7 @@