From 544080016eb700ab10788fa00714abda5c2a7c60 Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 10 Nov 2024 09:44:07 +0100 Subject: [PATCH] Update DashboardApps.php --- emhttp/plugins/dynamix/include/DashboardApps.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/emhttp/plugins/dynamix/include/DashboardApps.php b/emhttp/plugins/dynamix/include/DashboardApps.php index f9553523b..8e5ac6e72 100644 --- a/emhttp/plugins/dynamix/include/DashboardApps.php +++ b/emhttp/plugins/dynamix/include/DashboardApps.php @@ -164,12 +164,10 @@ if ($_POST['vms']) { echo "\0"; echo ""; - if ($vmusage == "Y") { - foreach ($vmusagehtml as $vmhtml) { - echo $vmhtml; - } - if (!count($vmusagehtml)) echo "
"._('No running virtual machines')."
"; - if ($running < 1 && count($vmusagehtml)) echo "
". _('No running virtual machines')."
"; + if ($vmusage=='Y') { + foreach ($vmusagehtml as $vmhtml) echo $vmhtml; + if (!count($vmusagehtml)) echo "
"._('No running virtual machines')."
"; + if ($running<1 && count($vmusagehtml)) echo "
". _('No running virtual machines')."
"; echo ""; } }