fix warnings
This commit is contained in:
parent
744f7392f2
commit
8ffcda499f
1 changed files with 4 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2016-2023 Charlene Benke <charlene@patas-monkey.com>
|
||||
* Copyright (C) 2018-2023 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2020 Josep Lluís Amador <joseplluis@lliuretic.cat>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -232,6 +232,9 @@ abstract class CommonDocGenerator
|
|||
);
|
||||
// Retrieve extrafields
|
||||
if (is_array($user->array_options) && count($user->array_options)) {
|
||||
if (empty($extrafields->attributes[$user->table_element])) {
|
||||
$extrafields->fetch_name_optionals_label($user->table_element);
|
||||
}
|
||||
$array_user = $this->fill_substitutionarray_with_extrafields($user, $array_user, $extrafields, 'myuser', $outputlangs);
|
||||
}
|
||||
return $array_user;
|
||||
|
|
|
|||
Loading…
Reference in a new issue