From cdcbc404eb0d3f2c715b51b19b3220b40d397a86 Mon Sep 17 00:00:00 2001 From: "Chuck.D.Norris" Date: Tue, 17 Dec 2024 16:53:12 +0100 Subject: [PATCH] . --- .../Controllers/Admin/EstadistiquesController.php | 1 + app/src/app/Views/Admin/Grafics.php | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/src/app/Controllers/Admin/EstadistiquesController.php b/app/src/app/Controllers/Admin/EstadistiquesController.php index 09fc1c4..f8efc15 100644 --- a/app/src/app/Controllers/Admin/EstadistiquesController.php +++ b/app/src/app/Controllers/Admin/EstadistiquesController.php @@ -13,6 +13,7 @@ public function index($queryParams = []) // Obtenim les dades del model correcte $totalContractes = Contract::count(); $totalTreeTypes = TreeType::count(); + // Comprova si $grafiques és null i assegura't que sigui un array diff --git a/app/src/app/Views/Admin/Grafics.php b/app/src/app/Views/Admin/Grafics.php index 0b5551f..c03b2c7 100644 --- a/app/src/app/Views/Admin/Grafics.php +++ b/app/src/app/Views/Admin/Grafics.php @@ -22,20 +22,9 @@ Seleccionar Contrato -
-

Contractes:

-

Tipus:

-