diff --git a/app/ivr_menu/v_ivr_menu.php b/app/ivr_menu/v_ivr_menu.php index fc6b0138fa..1f4a9caf56 100644 --- a/app/ivr_menu/v_ivr_menu.php +++ b/app/ivr_menu/v_ivr_menu.php @@ -38,12 +38,12 @@ require_once "includes/paging.php"; //get the http values and set them as variables if (isset($_GET["order_by"])) { - $order_by = check_str($_GET["order_by"]); - $order = check_str($_GET["order"]); + $order_by['0']['name'] = check_str($_GET["order_by"]); + $order_by['0']['order'] = check_str($_GET["order"]); } else { - $order_by = ''; - $order = ''; + $order_by['0']['name'] = 'ivr_menu_name'; + $order_by['0']['order'] = 'asc'; } //show the content @@ -90,9 +90,8 @@ require_once "includes/paging.php"; //get the list from the db if (isset($order_by)) { - if (strlen($order_by) > 0) { + if (count($order_by) > 0) { $ivr->order_by = $order_by; - $ivr->order_type = $order; } } $result = $ivr->find(); @@ -106,11 +105,11 @@ require_once "includes/paging.php"; echo "
| \n"; if (permission_exists('ivr_menu_add')) { echo " $v_link_label_add\n"; @@ -140,7 +139,6 @@ require_once "includes/paging.php"; unset($sql, $result, $row_count); } //end if results - echo " | |||||
| \n";
echo " | |||||