Upgrade - CLI (Manual & Menu): Mitigate PHP 8.x warnings, minor adjustments.

This commit is contained in:
fusionate
2024-05-13 14:19:34 -06:00
parent b369fad190
commit 2d3dca985d
10 changed files with 110 additions and 20 deletions

View File

@@ -255,7 +255,7 @@ function save_gateway_xml() {
}
function save_var_xml() {
if (is_array($_SESSION['switch']['conf'])) {
if (!empty($_SESSION['switch']['conf']) && is_array($_SESSION['switch']['conf'])) {
global $config, $domain_uuid;
//skip this function if the conf directory is empty