From 541555294b07d5f94f4ad4ad2c8534d2fe7b3389 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCller?= Date: Tue, 2 Apr 2024 18:10:29 +0200 Subject: [PATCH] fix php error "needs to return an array" --- classes/constellation.php | 19 ++----------------- index.php | 7 +++++++ 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/classes/constellation.php b/classes/constellation.php index a31f6e9..78558c1 100644 --- a/classes/constellation.php +++ b/classes/constellation.php @@ -104,27 +104,12 @@ class Constellation } if (!$admin) { - ?> - - '; - //$arrCompletedGroups = array(); + foreach($array as $service){ - //print_r($service); - //if ( !empty($service->group_name) && !in_array($service->group_name, $arrCompletedGroups)) { -//print $service->name; - // $arrCompletedGroups[] = $service['group_name']; - // $service->render(true); - //} else { $service->render(); - //} } echo ''; - //echo ''; + return $array; } else{ return $array; diff --git a/index.php b/index.php index 96bb3dd..239ad7b 100644 --- a/index.php +++ b/index.php @@ -118,3 +118,10 @@ Template::render_header("Status"); Template::render_footer(); } +?> + +