check if there are any entries

This commit is contained in:
Harald Bamberger
2023-09-28 15:58:35 +02:00
parent af3588aa61
commit a237cb1808
@@ -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);