Order SIP Profiles by Name by Default (#5365)

SIP profiles were unordered unless $_GET["order_by"] was set. Now if unset, it will order by sip_profile_name by default for nicer ordering.
This commit is contained in:
emaktech
2020-07-28 22:41:06 -06:00
committed by GitHub
parent 11416d89a4
commit d459d06e38
+7 -2
View File
@@ -71,7 +71,12 @@
} }
//get order and order by //get order and order by
$order_by = $_GET["order_by"]; if (isset($_GET["order_by"])) {
$order_by = $_GET["order_by"];
}
else {
$order_by = 'sip_profile_name';
}
$order = $_GET["order"]; $order = $_GET["order"];
//add the search string //add the search string
@@ -222,4 +227,4 @@
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>