Skip to content
Snippets Groups Projects
Commit d0476b7a authored by Olav Morken's avatar Olav Morken
Browse files

statistics_Graph_GoogleCharts: round->intval, to ensure that the values are rounded down.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1748 44740490-163a-0410-bde0-09ae8108e29a
parent d4108a3f
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,8 @@ class sspmod_statistics_Graph_GoogleCharts {
foreach($values as $k => $v){
if($v >= 0 && $v <= 100){
$first = substr($extended_table, round( ($delta*$v/100) / $size),1);
$second = substr($extended_table, round( ($delta*$v/100) % $size), 1);
$first = substr($extended_table, intval( ($delta*$v/100) / $size),1);
$second = substr($extended_table, intval( ($delta*$v/100) % $size), 1);
$chardata .= "$first$second";
#echo '<p>encoding ' . $v . ' to ' . $first . ' ' . $second . '';
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment