From 44b538885f6a642c36a98eef9dbd9c4b2fd42c58 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Thu, 12 Jun 2025 11:40:24 +0200 Subject: [PATCH] use additional result variable --- application/controllers/api/frontend/v1/LvPlan.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();