Browse Source

evite warning php 8

pull/16/head
tofulm 6 months ago
parent
commit
0223687744
  1. 4
      inc/facteur.php

4
inc/facteur.php

@ -51,13 +51,13 @@ function facteur_envoyer_mail($destinataires, string $sujet, array $message, int
$message_texte = isset($message['texte']) ? nettoyer_caracteres_mail($message['texte']) : '';
$pieces_jointes = $message['pieces_jointes'] ?? [];
$nom_envoyeur = $message['nom_envoyeur'] ?? '';
$from = $message['from'];
$from = $message['from'] ?? '';
$cc = $message['cc'] ?? [];
$bcc = $message['bcc'] ?? [];
$repondre_a = $message['repondre_a'] ?? '';
$nom_repondre_a = $message['nom_repondre_a'] ?? '';
$adresse_erreur = $message['adresse_erreur'] ?? '';
$headers = $message['headers'];
$headers = $message['headers'] ?? [];
if (is_string($headers)) {
$headers = array_map('trim', explode("\n", $headers));
$headers = array_filter($headers);

Loading…
Cancel
Save