prevent the call of SetLanguage with empty string

This commit is contained in:
Klaus Leithoff 2011-12-15 12:45:54 +00:00
parent 265e700c81
commit 6dbe3a722a

View File

@ -34,7 +34,7 @@ class egw_mailer extends PHPMailer
{
$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
}