diff --git a/htdocs/core/tpl/admin_extrafields_view.tpl.php b/htdocs/core/tpl/admin_extrafields_view.tpl.php index c5618b07297..a3292773d4d 100644 --- a/htdocs/core/tpl/admin_extrafields_view.tpl.php +++ b/htdocs/core/tpl/admin_extrafields_view.tpl.php @@ -60,7 +60,7 @@ if (! empty($conf->global->MAIN_CAN_HIDE_EXTRAFIELDS)) print ' '; print "\n"; -if (!empty($extrafields->attribute_type)) +if (is_array($extrafields->attribute_type)) && count($extrafields->attribute_type)) { foreach($extrafields->attribute_type as $key => $value) {