webui: make d_echo work in webui (#4432)

* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
This commit is contained in:
Tony Murray
2016-09-14 04:05:49 -05:00
committed by Neil Lathwood
parent ce95ceaa2b
commit 0351b54fb8
5 changed files with 11 additions and 25 deletions

View File

@@ -18,7 +18,6 @@ function get_service_status($device = null)
$sql_query = substr($sql_query, 0, strlen($sql_query)-6);
}
$sql_query .= " GROUP BY service_status";
d_echo("SQL Query: ".$sql_query);
// $service is not null, get only what we want.
$result = dbFetchRows($sql_query, $sql_param);
@@ -30,7 +29,6 @@ function get_service_status($device = null)
$service_count[$v['service_status']] = $v['count'];
}
d_echo("Service Count by Status: ".print_r($service_count, true)."\n");
return $service_count;
}