fix : Warning: Attempt to read property default_lang on null in /home/httpd/vhosts/aflac.fr/domains/dev.aflac.fr/httpdocs/expensereport/card.php on line 1193
This commit is contained in:
parent
2f8c4bd083
commit
adb97f5622
@ -1190,7 +1190,9 @@ if (empty($reshook)) {
|
|||||||
$outputlangs = $langs;
|
$outputlangs = $langs;
|
||||||
$newlang = GETPOST('lang_id', 'alpha');
|
$newlang = GETPOST('lang_id', 'alpha');
|
||||||
if (getDolGlobalInt('MAIN_MULTILANGS') && empty($newlang)) {
|
if (getDolGlobalInt('MAIN_MULTILANGS') && empty($newlang)) {
|
||||||
$newlang = $object->thirdparty->default_lang;
|
$user = new User($db);
|
||||||
|
$user->fetch($object->fk_user_author);
|
||||||
|
$newlang = $user->lang;
|
||||||
}
|
}
|
||||||
if (!empty($newlang)) {
|
if (!empty($newlang)) {
|
||||||
$outputlangs = new Translate("", $conf);
|
$outputlangs = new Translate("", $conf);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user