Skip to content

Commit

Permalink
Merge pull request #1598 from puschie286/UseDefaultDBGroup
Browse files Browse the repository at this point in the history
use $defaultGroup as default value for database session DBGroup
  • Loading branch information
lonnieezell authored Dec 11, 2018
2 parents edc9374 + 271fc9f commit dfe1d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Session/Handlers/DatabaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dfe1d08

Please sign in to comment.