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 +?>