fix: langue par défaut si pas de langue auteur
This commit is contained in:
parent
5999ca57f2
commit
5291ae511d
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ function formulaires_gamucontact_traiter_dist($id_auteur = 0, $redirect = '') {
|
|||
// array avec les langues des destinataires
|
||||
if (is_array($dest_langues) and count($dest_langues)) {
|
||||
$langues = array_filter(array_unique(array_column($dest_langues, 'lang')));
|
||||
} else {
|
||||
}
|
||||
if(empty($langues)) {
|
||||
$langues[] = lire_config('langue_site');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue