From 2637feee5f25f147a0c0f7e470c824a5b8b8545b Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 21 Aug 2023 16:16:04 -0700 Subject: [PATCH] check for existance of SESSION.domain before clearing --- panel/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panel/index.php b/panel/index.php index 9174495..13b092f 100644 --- a/panel/index.php +++ b/panel/index.php @@ -23,7 +23,9 @@ $f3->set('NAV.hostname', trim(`/bin/hostname -f`)); /* configurations based on hostname */ if ($f3->get('HOST') == $f3->get('NAV.hostname')) { $mapping = 'vpanel'; - $f3->clear('SESSION.domain'); + if ($f3->exists('SESSION.domain')) { + $f3->clear('SESSION.domain'); + } } elseif (preg_match('/^mail\./i', $f3->get('HOST'))) { $mapping = 'vmail'; $domain = preg_replace('/^mail\./i', '', $f3->get('HOST'));