Commit d6f47734 authored by Franco Fichtner's avatar Franco Fichtner

mvc: fix api remote crash report notice

(cherry picked from commit 48b9b3ff)
parent e1c6e9fd
......@@ -230,9 +230,9 @@ class ControllerBase extends ControllerRoot
}
// info about the current user and box
$this->view->session_username = !empty($_SESSION['Username']) ? $_SESSION['Username'] : '(unknown)';
$this->view->system_hostname = $cnf->object()->system->hostname;
$this->view->system_domain = $cnf->object()->system->domain;
$this->view->session_username = $_SESSION['Username'];
// append ACL object to view
$this->view->acl = new \OPNsense\Core\ACL();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment