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'));