mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
Fix Default order by
This commit is contained in:
@@ -24,15 +24,17 @@ if (isset($_GET['page'])) {
|
|||||||
$page = 1;
|
$page = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Order
|
|
||||||
if (isset($_GET['order']) && $_GET['order'] == 'ASC') {
|
if (isset($_GET['order']) && $_GET['order'] == 'ASC') {
|
||||||
$order = "ASC";
|
$order = "ASC";
|
||||||
$disp = "DESC";
|
$disp = "DESC";
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (isset($_GET['order']) && $_GET['order'] == 'DESC') {
|
||||||
$order = "DESC";
|
$order = "DESC";
|
||||||
$disp = "ASC";
|
$disp = "ASC";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Order
|
||||||
if(isset($order) && $order == "ASC") {
|
if(isset($order) && $order == "ASC") {
|
||||||
$disp = "DESC";
|
$disp = "DESC";
|
||||||
$order_icon = "<i class='fas fa-sort-down'></i>";
|
$order_icon = "<i class='fas fa-sort-down'></i>";
|
||||||
|
|||||||
Reference in New Issue
Block a user