From 3382479b30b9d509826384e874550738d4406f2e Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Tue, 23 Oct 2018 22:22:23 -0500 Subject: [PATCH] Fix error where Forge class might not be returned. Fixes #1225 --- system/Database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Database/Database.php b/system/Database/Database.php index 345c0228e67f..11c9512d7c53 100644 --- a/system/Database/Database.php +++ b/system/Database/Database.php @@ -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)