FIX #8478 !empty instead of count to avoid warning

This commit is contained in:
gauthier 2018-04-10 15:03:15 +02:00
parent 2b135dc951
commit 5621d1f8ea

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 (count($extrafields->attribute_type))
if (!empty($extrafields->attribute_type))
{
foreach($extrafields->attribute_type as $key => $value)
{