Merge pull request #9570 from frederic34/patch-9

remove superfluous spaces
This commit is contained in:
Laurent Destailleur 2018-09-19 19:21:14 +02:00 committed by GitHub
commit 76b6a88db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1216,8 +1216,7 @@ class Thirdparties extends DolibarrApi
if ($this->conf->global->MAIN_MULTILANGS && empty($newlang) && GETPOST('lang_id','aZ09')) $newlang=GETPOST('lang_id','aZ09');
if ($this->conf->global->MAIN_MULTILANGS && empty($newlang) && isset($this->company->thirdparty->default_lang)) $newlang=$this->company->thirdparty->default_lang; // for proposal, order, invoice, ...
if ($this->conf->global->MAIN_MULTILANGS && empty($newlang) && isset($this->company->default_lang)) $newlang=$this->company->default_lang; // for thirdparty
if (! empty($newlang))
{
if (! empty($newlang)) {
$outputlangs = new Translate("",$conf);
$outputlangs->setDefaultLang($newlang);
}