Skip to content

Commit

Permalink
Only apply Aws Credentials if they exist. Otherwise, allow driver to …
Browse files Browse the repository at this point in the history
…use Instance Iam Profile.
  • Loading branch information
chrisflorin committed Aug 26, 2019
1 parent ff24ec9 commit f1f5635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/TransportManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function createSesDriver()
*/
protected function addSesCredentials(array $config)
{
if ($config['key'] && $config['secret']) {
if (!empty($config['key']) && !empty($config['secret'])) {
$config['credentials'] = Arr::only($config, ['key', 'secret', 'token']);
}

Expand Down

0 comments on commit f1f5635

Please sign in to comment.