Skip to content

Commit

Permalink
fix php error "needs to return an array"
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen-MLR committed Apr 2, 2024
1 parent e7a294e commit 5415552
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
19 changes: 2 additions & 17 deletions classes/constellation.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,12 @@ public function render_status($admin = false, $heading = true): array{
}
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;
Expand Down
7 changes: 7 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,10 @@

Template::render_footer();
}
?>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<?php

0 comments on commit 5415552

Please sign in to comment.