diff --git a/application/controllers/api/frontend/v1/LvPlan.php b/application/controllers/api/frontend/v1/LvPlan.php index 00183cce8..63da7892c 100644 --- a/application/controllers/api/frontend/v1/LvPlan.php +++ b/application/controllers/api/frontend/v1/LvPlan.php @@ -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();