Merge pull request #16764 from hregis/fix_php_8_warning_again

FIX avoid php 8.x warning
This commit is contained in:
Laurent Destailleur 2021-03-17 16:50:21 +01:00 committed by GitHub
commit 36cb213a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2038,7 +2038,7 @@ class ExtraFields
$nofillrequired = 0; // For error when required field left blank
$error_field_required = array();
if (is_array($this->attributes[$object->table_element]['label'])) {
if (isset($this->attributes[$object->table_element]['label']) && is_array($this->attributes[$object->table_element]['label'])) {
$extralabels = $this->attributes[$object->table_element]['label'];
}