diff --git a/dibi/libs/DibiConnection.php b/dibi/libs/DibiConnection.php index 1fcefc0c..38e83889 100644 --- a/dibi/libs/DibiConnection.php +++ b/dibi/libs/DibiConnection.php @@ -78,7 +78,7 @@ class DibiConnection extends DibiObject $config['driver'] = dibi::$defaultDriver; } - $driver = preg_replace('#[^a-z0-9_]#', '_', $config['driver']); + $driver = preg_replace('#[^a-z0-9_]#', '_', strtolower($config['driver'])); $class = "Dibi" . $driver . "Driver"; if (!class_exists($class, FALSE)) { include_once dirname(__FILE__) . "/../drivers/$driver.php";