fix warning

This commit is contained in:
Frédéric FRANCE 2021-05-27 22:56:20 +02:00 committed by GitHub
parent 819e6e1122
commit d0b8a80c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ foreach ($object->fields as $key => $val) {
} else {
$value = GETPOST($key, 'alphanohtml');
}
if ($val['noteditable']) {
if (!empty($val['noteditable'])) {
print $object->showOutputField($val, $key, $value, '', '', '', 0);
} else {
print $object->showInputField($val, $key, $value, '', '', '', 0);