some bugfixing

This commit is contained in:
vitalisator
2016-01-28 13:07:33 +01:00
parent 89f9e609b5
commit 0e66ddf088
5 changed files with 12 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ $param[] = $device_id;
$sql = " FROM `ports_stp` `ps` JOIN `ports` `p` ON `ps`.`port_id`=`p`.`port_id` WHERE `ps`.`device_id` = ?";
$count_sql = "SELECT COUNT(ports_stp_id) $sql";
$count_sql = "SELECT COUNT(*) $sql";
$total = dbFetchCell($count_sql, $param);
if (empty($total)) {
$total = 0;