Update gateways.php

This commit is contained in:
FusionPBX 2023-05-13 20:46:18 -06:00 committed by GitHub
parent 2e270b07f0
commit ce4de56b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@
$offset = $rows_per_page * $page;
//get the list
$sql = "select * from ";
$sql = "select * ";
$sql .= "from v_gateways ";
$sql .= "where true ";
if (!($show == "all" && permission_exists('gateway_all'))) {
@ -261,7 +261,7 @@
echo "<tr class='list-header'>\n";
if (permission_exists('gateway_add') || permission_exists('gateway_edit') || permission_exists('gateway_delete')) {
echo " <th class='checkbox'>\n";
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='list_all_toggle(); checkbox_on_change(this);' ".($gateways ?: "style='visibility: hidden;'").">\n";
echo " <input type='checkbox' id='checkbox_all' name='checkbox_all' onclick='list_all_toggle(); checkbox_on_change(this);' ".(!empty($gateways) ?: "style='visibility: hidden;'").">\n";
echo " </th>\n";
}
if ($show == "all" && permission_exists('gateway_all')) {