diff --git a/system/Session/Handlers/DatabaseHandler.php b/system/Session/Handlers/DatabaseHandler.php index 5cda3bca6a50..bae03a1003fa 100644 --- a/system/Session/Handlers/DatabaseHandler.php +++ b/system/Session/Handlers/DatabaseHandler.php @@ -102,7 +102,7 @@ public function __construct(BaseConfig $config, string $ipAddress) } // Get DB Connection - $this->DBGroup = ! empty($config->sessionDBGroup) ? $config->sessionDBGroup : 'default'; + $this->DBGroup = $config->sessionDBGroup ?? config(Database::class)->defaultGroup; $this->db = Database::connect($this->DBGroup);