From 5621d1f8ea3bba85e842ee7aa10f872855f3616a Mon Sep 17 00:00:00 2001 From: gauthier Date: Tue, 10 Apr 2018 15:03:15 +0200 Subject: [PATCH] FIX #8478 !empty instead of count to avoid warning --- htdocs/core/tpl/admin_extrafields_view.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/admin_extrafields_view.tpl.php b/htdocs/core/tpl/admin_extrafields_view.tpl.php index 6d3bb43f3b2..c5618b07297 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 (count($extrafields->attribute_type)) +if (!empty($extrafields->attribute_type)) { foreach($extrafields->attribute_type as $key => $value) {