Skip to content
Snippets Groups Projects
Commit d7c69376 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Bugfix

parent 0d3445b8
No related branches found
No related tags found
No related merge requests found
...@@ -31,8 +31,7 @@ include_once (JPGRAPH_DIR."jpgraph_canvas.php"); ...@@ -31,8 +31,7 @@ include_once (JPGRAPH_DIR."jpgraph_canvas.php");
$error = 0; $error = 0;
$labels = array();
$datas = array();
$datetime = time(); $datetime = time();
$month = strftime("%m", $datetime); $month = strftime("%m", $datetime);
...@@ -64,7 +63,7 @@ $sql .= " WHERE date_format(datev,'%Y%m') = '".$year.$month."'"; ...@@ -64,7 +63,7 @@ $sql .= " WHERE date_format(datev,'%Y%m') = '".$year.$month."'";
$resql = $db->query($sql); $resql = $db->query($sql);
$amounts = array(); $accounts = array();
if ($resql) if ($resql)
{ {
...@@ -85,7 +84,9 @@ $account = 1; ...@@ -85,7 +84,9 @@ $account = 1;
foreach ($accounts as $account) foreach ($accounts as $account)
{ {
$labels = array();
$datas = array();
$amounts = array();
$sql = "SELECT sum(amount)"; $sql = "SELECT sum(amount)";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment