best conditions testing

This commit is contained in:
John BOTELLA 2018-11-13 10:20:34 +01:00
parent 4f7be36249
commit 500bb7bc96

View File

@ -6152,7 +6152,8 @@ abstract class CommonObject
$e = 0;
foreach($extrafields->attributes[$this->table_element]['label'] as $key=>$label)
{
if(empty($extrafields->attribute_list[$key]) && $mode == 'view'){
if (isset($extrafields->attributes[$this->table_element]['list'][$key])
&& empty($extrafields->attributes[$this->table_element]['list'][$key]) && $mode == 'view'){
continue;
}