Commit d8136eba authored by Chancellier Pierre-Jean's avatar Chancellier Pierre-Jean
Browse files

correcion du probleme des floatt avec json_decode

parent 4c23c565
......@@ -123,7 +123,7 @@
$output = explode(':', $output);
$montant_transaction = $output[0]/100;
if ($timestamp != $tmp_timestamp){
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>$total]);
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>(string) $total]);
}
$total += $montant_transaction;
$tmp_timestamp = $timestamp;
......@@ -134,9 +134,9 @@
$donors = count($donneurs);
if ($display_graph){
// On complète le tableau avec la derniere transaction et pour la date de visualisation du graph
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>$total]);
array_push($array_final, ['t'=>$today_timestamp*1000, 'y'=>$total]);
$array_line = [['t'=>$start_timestamp*1000, 'y'=>$target],['t'=>$today_timestamp*1000, 'y'=>$target]];
array_push($array_final, ['t'=>$tmp_timestamp*1000, 'y'=>(string) $total]);
array_push($array_final, ['t'=>$today_timestamp*1000, 'y'=>(string) $total]);
$array_line = [['t'=>$start_timestamp*1000, 'y'=>(string) $target],['t'=>$today_timestamp*1000, 'y'=>(string) $target]];
}
// Vérification de l'unité
......
Supports Markdown
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