Update gateways.php

This commit is contained in:
FusionPBX
2017-12-17 02:18:04 -07:00
committed by GitHub
parent c51c5a628d
commit 415987eb99

View File

@@ -192,7 +192,13 @@
$tr_link = (permission_exists('gateway_edit')) ? "href='gateway_edit.php?id=".$row['gateway_uuid']."'" : null;
echo "<tr ".$tr_link.">\n";
if ($_GET['show'] == "all" && permission_exists('gateway_all')) {
echo " <td valign='top' class='".$row_style[$c]."'>".$_SESSION['domains'][$row['domain_uuid']]['domain_name']."</td>\n";
if (strlen($_SESSION['domains'][$row['domain_uuid']]['domain_name']) > 0) {
$domain = $_SESSION['domains'][$row['domain_uuid']]['domain_name'];
}
else {
$domain = $text['label-global'];
}
echo " <td valign='top' class='".$row_style[$c]."'>".$domain."</td>\n";
}
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('gateway_edit')) {