mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
fix warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user