Merge pull request #8541 from atm-gauthier/FIX_count_6.0

FIX #8478 !empty instead of count to avoid warning
This commit is contained in:
Laurent Destailleur 2018-04-11 14:55:41 +02:00 committed by GitHub
commit c392b9b8ef
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 (count($extrafields->attribute_type))
if (is_array($extrafields->attribute_type)) && count($extrafields->attribute_type))
{
foreach($extrafields->attribute_type as $key => $value)
{