mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 15:32:17 +00:00
fix(Stundenplan API):corrects little bug with if statement check
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user