Skip to content

Commit

Permalink
Fix PHP Notice when collation not set (#19507)
Browse files Browse the repository at this point in the history
Fix PHP Notice when `collation` not set in config/database.php
  • Loading branch information
afilippov1985 authored and taylorotwell committed Jun 7, 2017
1 parent de8084d commit e09d045
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 @@ -65,7 +65,7 @@ protected function configureEncoding($connection, array $config)
*/
protected function getCollation(array $config)
{
return ! is_null($config['collation']) ? " collate '{$config['collation']}'" : '';
return isset($config['collation']) ? " collate '{$config['collation']}'" : '';
}

/**
Expand Down

0 comments on commit e09d045

Please sign in to comment.