Skip to content

Commit

Permalink
Merge pull request #1339 from bcit-ci/forgefix
Browse files Browse the repository at this point in the history
Fix error where Forge class might not be returned. Fixes #1225
  • Loading branch information
lonnieezell authored Oct 24, 2018
2 parents fc5acb0 + 3382479 commit bfcadc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function load(array $params = [], string $alias)
*/
public function loadForge(ConnectionInterface $db)
{
$className = strpos($db->DBDriver, '\\') === false ? '\CodeIgniter\Database\\' . $db->DBDriver . '\\Forge' : $db->DBDriver . '\\Connection';
$className = strpos($db->DBDriver, '\\') === false ? '\CodeIgniter\Database\\' . $db->DBDriver . '\\Forge' : $db->DBDriver . '\\Forge';

// Make sure a connection exists
if ( ! $db->connID)
Expand Down

0 comments on commit bfcadc3

Please sign in to comment.