use additional result variable

This commit is contained in:
Harald Bamberger
2025-06-12 11:40:24 +02:00
parent 57d71be792
commit 44b538885f
@@ -81,7 +81,8 @@ class LvPlan extends FHCAPI_Controller
$end_date = $this->input->get('end_date', TRUE);
$lv_id = $this->input->get('lv_id', TRUE);
$lvplan_events = $this->getDataOrTerminateWithError($this->lvplanlib->getLvPlan($start_date,$end_date,$lv_id));
$res_lvplan_events = $this->lvplanlib->getLvPlan($start_date,$end_date,$lv_id);
$lvplan_events = $this->getDataOrTerminateWithError($res_lvplan_events);
if( is_null($lvplan_events) || isEmptyArray($lvplan_events) )
{
$lvplan_events = array();