diff --git a/gestion/lib/Service/ExportThanatoStatisticService.php b/gestion/lib/Service/ExportThanatoStatisticService.php index 96de643..dbade9d 100644 --- a/gestion/lib/Service/ExportThanatoStatisticService.php +++ b/gestion/lib/Service/ExportThanatoStatisticService.php @@ -70,7 +70,7 @@ class ExportThanatoStatisticService { return null; } $exportData = $this->gestionBdd->getExportThanatoStatisticData($thanatoId,$month,$year); - if($exportData){ + if(empty($exportData)){ return null; } $defaultConfig = json_decode($this->gestionBdd->getConfiguration(BddConstant::DEFAULT_ADMIN_ID_NEXTCLOUD));