diff --git a/include/class.osticket.php b/include/class.osticket.php index a8133f159a3c55aec8f940c7a2cd7680e0713849..b53e849f4574eb257870b0003a595314484c6ca7 100644 --- a/include/class.osticket.php +++ b/include/class.osticket.php @@ -59,7 +59,6 @@ class osTicket { if (!defined('DISABLE_SESSION') || !DISABLE_SESSION) $this->session = osTicketSession::start(SESSION_TTL); // start DB based session - $this->config = new OsticketConfig(); $this->csrf = new CSRF('__CSRFToken__'); @@ -85,6 +84,9 @@ class osTicket { } function getConfig() { + if (!isset($this->config)) + $this->config = new OsticketConfig(); + return $this->config; }