Skip to content

Commit

Permalink
Correction paramètre email de la commande report
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoSpy committed Oct 4, 2016
1 parent 89d9141 commit cc7b56f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/autoload/smtp.local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ return array(
'name' => 'DGAC',
'host' => 'mail.****.aviation-civile.gouv.fr',
'connection_class' => 'plain',
'port' => 587,
//'port' => 587, //optionnel
'connection_config' => array(
'username' => 'user',
'password' => 'pass',
'ssl' => 'tls',
//'ssl' => 'tls', //optionnel : à n'utiliser que si besoin
),
),
'emailfrom' => '[email protected]',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public function reportAction()
if (! $organisation) {
throw new \RuntimeException('Unable to find organisation.');
} else {
$email = $organisation[0]->getIpoEmail();
if (empty($email)) {
$emailIPO = $organisation[0]->getIpoEmail();
if ($email && empty($emailIPO)) {
throw new \RuntimeException('Unable to find IPO email.');
}
}
Expand Down

0 comments on commit cc7b56f

Please sign in to comment.