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:
parent
11416d89a4
commit
d459d06e38
|
|
@ -71,7 +71,12 @@
|
|||
}
|
||||
|
||||
//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"];
|
||||
|
||||
//add the search string
|
||||
|
|
@ -222,4 +227,4 @@
|
|||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue