fix php error "needs to return an array"

This commit is contained in:
Steffen Müller 2024-04-02 18:10:29 +02:00
parent e7a294ef42
commit 541555294b
No known key found for this signature in database
GPG Key ID: 4BDF257D564FDEC0
2 changed files with 9 additions and 17 deletions

View File

@ -104,27 +104,12 @@ class Constellation
}
if (!$admin)
{
?>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<?php
//echo '<div id="status-container" class="clearfix">';
//$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 '</ul>';
//echo '</div>';
return $array;
}
else{
return $array;

View File

@ -118,3 +118,10 @@ Template::render_header("Status");
Template::render_footer();
}
?>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<?php