diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index a98affa589..a1241601aa 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -63,7 +63,7 @@ //get total destination count from the database $sql = "select count(*) as num_rows from v_destinations "; $sql .= "where destination_type = '".$destination_type."' "; - if ($_GET['showall'] && permission_exists('destination_all')) { + if ($_GET['show'] == "all" && permission_exists('destination_all')) { //show all } else { $sql .= "and (domain_uuid = '".$domain_uuid."' or domain_uuid is null) "; @@ -89,8 +89,8 @@ //prepare to page the results $rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50; $param = "&search=".$search; - if ($_GET['showall'] && permission_exists('destination_all')) { - $param .= "&showall=true"; + if ($_GET['showl'] == "all" && permission_exists('destination_all')) { + $param .= "&show=all"; } $page = $_GET['page']; if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; } @@ -100,7 +100,7 @@ //get the list $sql = "select * from v_destinations "; $sql .= "where destination_type = '".$destination_type."' "; - if ($_GET['showall'] && permission_exists('destination_all')) { + if ($_GET['show'] == "all" && permission_exists('destination_all')) { //show all } else { $sql .= "and (domain_uuid = '".$domain_uuid."' or domain_uuid is null) "; @@ -144,11 +144,11 @@ } if (permission_exists('destination_all')) { - if ($_GET['showall'] == 'true') { - echo " "; + if ($_GET['show'] == 'all') { + echo " "; } else { - echo " \n"; + echo " \n"; } } @@ -174,7 +174,7 @@ echo "
| ".$_SESSION['domains'][$row['domain_uuid']]['domain_name']." | \n"; } echo "".ucwords($row['destination_type'])." | \n"; @@ -218,7 +218,7 @@ } //end if results echo "|||||
| \n"; } else { | ||||||