+ Fix getSuperviseurNetwork

This commit is contained in:
Djery-Tom 2020-05-19 13:55:38 +01:00
parent 700947619e
commit d57f088460
1 changed files with 2 additions and 0 deletions

View File

@ -456,6 +456,8 @@ INNER JOIN networks nt ON na.network_id=nt.id INNER JOIN agents ag ON ag.id=na.a
$re = [];
if ($result) {
while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
$row['balance_princ'] = $row['balance_princ'] == null ? 0 : $row['balance_princ'];
$row['balance_com'] = $row['balance_com'] == null ? 0 : $row['balance_com'];
$rows[] = $row;
}
$re['val'] = $rows;