Update admin_extrafields_view.tpl.php

This commit is contained in:
Laurent Destailleur 2018-04-11 14:55:29 +02:00 committed by GitHub
parent 5621d1f8ea
commit 75bc3d17e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,7 @@ if (! empty($conf->global->MAIN_CAN_HIDE_EXTRAFIELDS)) print '<td align="center"
print '<td width="80">&nbsp;</td>';
print "</tr>\n";
if (!empty($extrafields->attribute_type))
if (is_array($extrafields->attribute_type)) && count($extrafields->attribute_type))
{
foreach($extrafields->attribute_type as $key => $value)
{