fix : Warning: Undefined array key label
This commit is contained in:
parent
a27642cbfe
commit
6cfe70dfe5
@ -1615,7 +1615,7 @@ abstract class CommonDocGenerator
|
||||
$extrafields = $this->extrafieldsCache;
|
||||
|
||||
|
||||
if (!empty($extrafields->attributes[$object->table_element]) && is_array($extrafields->attributes[$object->table_element]['label'])) {
|
||||
if (!empty($extrafields->attributes[$object->table_element]) && is_array($extrafields->attributes[$object->table_element]) && array_key_exists('label', $extrafields->attributes[$object->table_element]) && is_array($extrafields->attributes[$object->table_element]['label'])) {
|
||||
foreach ($extrafields->attributes[$object->table_element]['label'] as $key => $label) {
|
||||
// Dont display separator yet even is set to be displayed (not compatible yet)
|
||||
if ($extrafields->attributes[$object->table_element]['type'][$key] == 'separate') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user