Merge pull request #17757 from frederic34/patch-19

fix warning
This commit is contained in:
Laurent Destailleur 2021-06-04 11:54:26 +02:00 committed by GitHub
commit f7c5a9e13a
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);