mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add more reverse sort orders
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php include("inc_all.php");
|
||||
|
||||
//$o = "DESC";
|
||||
|
||||
if(!empty($_GET['sb'])){
|
||||
$sb = mysqli_real_escape_string($mysqli,$_GET['sb']);
|
||||
@@ -6,6 +8,12 @@ if(!empty($_GET['sb'])){
|
||||
$sb = "expense_date";
|
||||
}
|
||||
|
||||
// Reverse default sort
|
||||
if(!isset($_GET['o'])){
|
||||
$o = "DESC";
|
||||
$disp = "ASC";
|
||||
}
|
||||
|
||||
if(empty($_GET['canned_date'])){
|
||||
//Prevents lots of undefined variable errors.
|
||||
// $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00
|
||||
|
||||
Reference in New Issue
Block a user