Browse Source

[backend] Statistiques : mois courant non pris en compte

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
02199408bc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      backend/controllers/StatsController.php

+ 2
- 2
backend/controllers/StatsController.php View File

@@ -80,7 +80,7 @@ class StatsController extends BackendController
*/

$dateStart = date('Y-m-d', time() - 60 * 60 * 24 * 365);
$dateEnd = date('Y-m-d');
$dateEnd = date('Y-m-d', time() + 60 * 60 * 24 * 31);

$data = [];

@@ -122,7 +122,7 @@ class StatsController extends BackendController
// création d'un tableau sans index car chart.js n'accepte pas les index
$dataNoIndex = [];
foreach ($data as $key => $val) {
$dataNoIndex[] = $val;
$dataNoIndex[] = round($val, 2);
}

return $this->render('index', [

Loading…
Cancel
Save