mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 23:38:58 +01:00
prevent the call of SetLanguage with empty string
This commit is contained in:
parent
265e700c81
commit
6dbe3a722a
@ -34,7 +34,7 @@ class egw_mailer extends PHPMailer
|
|||||||
{
|
{
|
||||||
$lang = $nation;
|
$lang = $nation;
|
||||||
}
|
}
|
||||||
if (!$this->SetLanguage($lang,$lang_path))
|
if (!$this->SetLanguage((empty($lang)?'en':$lang),$lang_path))
|
||||||
{
|
{
|
||||||
$this->SetLanguage('en',$lang_path); // use English default
|
$this->SetLanguage('en',$lang_path); // use English default
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user