Merge pull request #19187 from frederic34/patch-8

fix warning
This commit is contained in:
Laurent Destailleur 2021-10-31 17:51:16 +01:00 committed by GitHub
commit 6a4344af8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ foreach ($object->fields as $key => $val) {
$value = GETPOSTISSET($key) ? GETPOST($key, 'alpha') : $object->$key;
}
//var_dump($val.' '.$key.' '.$value);
if ($val['noteditable']) {
if (!empty($val['noteditable'])) {
print $object->showOutputField($val, $key, $value, '', '', '', 0);
} else {
if ($key == 'lang') {

View File

@ -156,7 +156,7 @@ foreach ($object->fields as $key => $val) {
if ($val['type'] == 'text') {
print ' wordbreak';
}
if ($val['cssview']) {
if (!empty($val['cssview'])) {
print ' '.$val['cssview'];
}
print '">';