Commit 56591e40 authored by mbriand's avatar mbriand

Bug sondage

parent 88d6def3
......@@ -71,7 +71,11 @@ if ( $sdn->is_valid() )
foreach ( $res as $re )
{
$cumul+=$re[1];
$pc = $re[1]*100/$sdn->total;
if ($sdn->total > 0)
$pc = $re[1]*100/$sdn->total;
else
$pc = 0;
$cts->puts($re[0]."<br/>");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment