Skip to content

Commit

Permalink
Update MySqlConnector.php (#14225)
Browse files Browse the repository at this point in the history
  • Loading branch information
dontbug authored and taylorotwell committed Jul 5, 2016
1 parent 0b4f798 commit 90d95e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connectors/MySqlConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function connect(array $config)
// connection's behavior, and some might be specified by the developers.
$connection = $this->createConnection($dsn, $config, $options);

if (isset($config['database'])) {
if (! empty($config['database'])) {
$connection->exec("use `{$config['database']}`;");
}

Expand Down

0 comments on commit 90d95e2

Please sign in to comment.