From a237cb1808f71fbd416d90eba594e474f32aeb93 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 28 Sep 2023 15:58:35 +0200 Subject: [PATCH] check if there are any entries --- application/controllers/components/Antrag/Leitung.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/components/Antrag/Leitung.php b/application/controllers/components/Antrag/Leitung.php index a429625ae..f6b184351 100644 --- a/application/controllers/components/Antrag/Leitung.php +++ b/application/controllers/components/Antrag/Leitung.php @@ -101,7 +101,10 @@ class Leitung extends FHC_Controller $this->output->set_status_header(500); return $this->outputJson('Internal Server Error'); } - $antraege = getData($result); + if(hasData($result)) + { + $antraege = getData($result); + } } $this->outputJson($antraege);