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);