From 24f13dd8cd13b9714f7b0674b32eaf599ed46941 Mon Sep 17 00:00:00 2001 From: hael Date: Fri, 28 Mar 2025 20:44:05 +0100 Subject: [PATCH] update errors --- functions.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index df165a3..305b4f4 100644 --- a/functions.php +++ b/functions.php @@ -140,7 +140,7 @@ function show_service($name, $containers) { echo $str; } -function show_service_update($name, $update, $uptodate) { +function show_service_update($name, $update, $uptodate, $error) { $str = ''; $str .= ""; @@ -156,9 +156,19 @@ function show_service_update($name, $update, $uptodate) { if (!empty($uptodate)) { $arr = explode(" ",$uptodate); foreach ($arr as $container) { - $str .= ""; + $str .= ""; } } + + $error = trim($error); + if (!empty($error)) { + $arr = explode(" ",$error); + foreach ($arr as $container) { + //$str .= ""; + $str .= ""; + } + } + $str .= '
{$name}
 ".$container."Already up to date
 ".$container."Already up to dateFORCE UPDATE
 ".$container."N/A
 ".$container."N/ATRY UPDATE
'; echo $str;