Update gateways.php

Add missing brackets.
This commit is contained in:
FusionPBX
2016-06-14 19:27:15 -06:00
committed by GitHub
parent 1f09ffc115
commit 79f73a81bb

View File

@@ -103,7 +103,7 @@ else {
//get total gateway count from the database
$sql = "select count(*) as num_rows from v_gateways ";
$sql .= "where ( domain_uuid = '".$_SESSION['domain_uuid']."' ";
if (permission_exists('gateway_domain') {
if (permission_exists('gateway_domain')) {
$sql .= "or domain_uuid is null ";
}
$sql .= ");";
@@ -126,7 +126,7 @@ else {
//get the list
$sql = "select * from v_gateways ";
$sql .= "where ( domain_uuid = '".$_SESSION['domain_uuid']."' ";
if (permission_exists('gateway_domain') {
if (permission_exists('gateway_domain')) {
$sql .= "or domain_uuid is null ";
}
$sql .= ");";