From 55498f8bec32c2600e025129e8ff9430f911754d Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 19 Sep 2023 17:56:20 +0200 Subject: [PATCH] Add covering element to JSON output --- application/controllers/Sattimers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Sattimers.php b/application/controllers/Sattimers.php index fa78876b4..a89a51487 100644 --- a/application/controllers/Sattimers.php +++ b/application/controllers/Sattimers.php @@ -16,7 +16,7 @@ public function index() { ]; $url = 'https://www.df2et.de/tevel/api.php'; $json = file_get_contents($url); - $data['activations'] = json_decode($json, true); + $data['activations'] = json_decode($json, true)['data']; $data['page_title'] = "Satellite Timers"; $this->load->view('interface_assets/header', $data);