Bugfix
This commit is contained in:
parent
0d3445b83c
commit
d7c6937675
@ -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."'";
|
|||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|
||||||
$amounts = array();
|
$accounts = array();
|
||||||
|
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
@ -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)";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user