1
0

Statistieken fix

Ze zaten er een dag naast
This commit is contained in:
JelmerHinssen 2017-04-02 21:06:35 +02:00
parent 184dbd5b4e
commit ee1d1e9df2

View File

@ -27,8 +27,8 @@ class Statistieken {
$huidigSaldo = (double)$saldo;
$yas = array($huidigSaldo);
for($i = 1; $i <= $dagen; $i++){
$af = (double)$eraf[array("datum" => date("Y-m-d", strtotime("-" . $i . " day")))]['bedr'];
$bij = (double)$erbij[array("datum" => date("Y-m-d", strtotime("-" . $i . " day")))]['bedr'];
$af = (double)$eraf[array("datum" => date("Y-m-d", strtotime("-" . $i + 1 . " day")))]['bedr'];
$bij = (double)$erbij[array("datum" => date("Y-m-d", strtotime("-" . $i + 1 . " day")))]['bedr'];
if(!isset($af)){
$af = 0;
}