Show global gateways.

This commit is contained in:
Mark Crane 2015-01-22 11:21:18 +00:00
parent 68b4a0fa38
commit d3ac5a78df
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ else {
//prepare to page the results
$sql = "select count(*) as num_rows from v_gateways ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "where (domain_uuid = '$domain_uuid' or domain_uuid is null) ";
$prep_statement = $db->prepare($sql);
if ($prep_statement) {
$prep_statement->execute();
@ -123,7 +123,7 @@ else {
//get the list
$sql = "select * from v_gateways ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "where (domain_uuid = '$domain_uuid' or domain_uuid is null) ";
if (strlen($order_by) == 0) {
$sql .= "order by gateway asc ";
}