From d459d06e383fa825acbd72ac1c45d89ecd88f956 Mon Sep 17 00:00:00 2001 From: emaktech Date: Wed, 29 Jul 2020 00:41:06 -0400 Subject: [PATCH] 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. --- app/sip_profiles/sip_profiles.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/sip_profiles/sip_profiles.php b/app/sip_profiles/sip_profiles.php index 7ea2f1c426..36df51a828 100644 --- a/app/sip_profiles/sip_profiles.php +++ b/app/sip_profiles/sip_profiles.php @@ -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"; -?> \ No newline at end of file +?>