diff --git a/htdocs/telephonie/script/graph-statistiques-clients.php b/htdocs/telephonie/script/graph-statistiques-clients.php index c9b0933321e48ebd2dbf4545c311e318b5d4e41a..975c812989c2708d6ade61175a88541e86617150 100644 --- a/htdocs/telephonie/script/graph-statistiques-clients.php +++ b/htdocs/telephonie/script/graph-statistiques-clients.php @@ -46,6 +46,10 @@ if ($db->query($sql)) $clientPerChild = ceil($row[0] / $childrenTotal); $db->free(); } +else +{ + exit("Erreur selection des clients"); +} while ( $childrenNow < $childrenTotal ) { @@ -55,7 +59,7 @@ while ( $childrenNow < $childrenTotal ) { die( "error\n" ); } - elseif ( $pid == 0 ) + elseif ( $pid ) { $childrenNow++; }