Skip to content

Commit

Permalink
Use proper index for driver name
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Oct 13, 2014
1 parent 03fbcc2 commit 4ef456d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/StaticConfigTrait.php
Expand Up @@ -177,9 +177,9 @@ public static function parseDsn($config = null) {
unset($config['url']);

if (preg_match("/^([\w\\\]+)/", $dsn, $matches)) {
$scheme = explode('\\', $matches[2]);
$scheme = explode('\\', $matches[1]);
$scheme = array_pop($scheme);
$driver = $matches[2];
$driver = $matches[1];
$dsn = preg_replace("/^([\w\\\]+)/", $scheme, $dsn);
}

Expand Down

0 comments on commit 4ef456d

Please sign in to comment.