fix(Stundenplan API):corrects little bug with if statement check

This commit is contained in:
SimonGschnell
2025-05-27 14:30:34 +02:00
parent a99cc96682
commit a0fb34420e
@@ -81,14 +81,11 @@ class Stundenplan extends FHCAPI_Controller
$lv_id = $this->input->get('lv_id', TRUE);
$stundenplan_events = $this->stundenplanlib->getStundenplan($start_date,$end_date,$lv_id);
$stundenplan_events = $this->getDataOrTerminateWithError($stundenplan_events);
if( is_null($stundenplan_events) || isEmptyArray($stundenplan_events) )
{
$stundenplan_events = array();
}
else
{
$stundenplan_events = $this->getDataOrTerminateWithError($stundenplan_events);
}
// fetching moodle events
$moodle_events = [];