1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-17 03:24:21 +02:00
This commit is contained in:
David Grudl
2006-09-13 12:02:38 +00:00
parent 6c4ede17d6
commit da70be27a8
3 changed files with 25 additions and 7 deletions

View File

@@ -147,10 +147,12 @@ class dibi
// include dibi driver
$className = "Dibi$config[driver]Driver";
require_once dirname(__FILE__) . "/drivers/$config[driver].php";
if (!class_exists($className)) {
include_once dirname(__FILE__) . "/drivers/$config[driver].php";
if (!class_exists($className))
return new DibiException("Unable to create instance of dibi driver class '$className'.");
if (!class_exists($className))
return new DibiException("Unable to create instance of dibi driver class '$className'.");
}
// create connection object