Skip to content

Commit

Permalink
change db driver check
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy8 committed Apr 27, 2016
1 parent a812354 commit 3dcd37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connectors/SqlServerConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function getDsn(array $config)
if (in_array('dblib', $this->getAvailableDrivers())) {
return $this->getDblibDsn($config);
} elseif (in_array('odbc', $this->getAvailableDrivers())) {
if (isset($config['driver']) && $config['driver'] === 'odbc') {
if (isset($config['odbc']) && $config['odbc'] === true) {
return $this->getOdbcDsn($config);
} else {
return $this->getSqlSrvDsn($config);
Expand Down

0 comments on commit 3dcd37a

Please sign in to comment.