Update chart [skip ci]

This commit is contained in:
James Cole
2015-05-04 18:51:38 +02:00
parent 7e23dd1d66
commit 369695ab32

View File

@@ -176,9 +176,9 @@ class GoogleChartController extends Controller
foreach ($allEntries as $entry) {
if ($entry[2] > 0) {
$left = $entry[1] - $entry[2];
if ($left >= 0) {
if ($left > 0) {
$chart->addRow($entry[0], $left, null);
} else {
} else if($left < 0) {
$chart->addRow($entry[0], null, $left);
}