install/includes/stages/install.php
changeset 1378 e58294b867c1
parent 1227 bdac73ed481e
child 1379 5cbd678df965
--- a/install/includes/stages/install.php	Wed Aug 21 22:34:54 2013 -0400
+++ b/install/includes/stages/install.php	Wed Aug 21 22:50:34 2013 -0400
@@ -29,7 +29,9 @@
 	return true;
 }
 
-$db = new $dbdriver();
+$dbdriver_cls = have_pdo($dbdriver) ? "{$dbdriver}_pdo" : $dbdriver;
+
+$db = new $dbdriver_cls();
 $result = $db->connect();
 if ( !$result )
 {