Skip to content
Snippets Groups Projects
Commit 19d0768b authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FEAT #20145 TIME 0:01 correct ConfigurationModel::getByIdentifier warnings

parent 52190d8b
No related branches found
No related tags found
No related merge requests found
......@@ -132,10 +132,10 @@ class EmailController
$email['cci'] = json_decode($email['cci']);
$configuration = ConfigurationModel::getByIdentifier(['identifier' => 'emailServer', 'select' => ['value']]);
$configuration = json_decode($configuration[0]['value'], true);
if (empty($configuration)) {
return ['errors' => 'Configuration is missing'];
}
$configuration = json_decode($configuration[0]['value'], true);
$phpmailer = new PHPMailer();
$phpmailer->setFrom($configuration['from']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment