Update extrafields.class.php

if no elementtype send at the function, they return an empty array
This commit is contained in:
BENKE Charles 2015-03-22 20:26:20 +01:00
parent 221d44a4b8
commit 730593b525

View File

@ -567,10 +567,12 @@ class ExtraFields
{
global $conf;
if ( empty($elementtype) ) return array();
if ($elementtype == 'thirdparty') $elementtype='societe';
$array_name_label=array();
// For avoid conflicts with external modules
if (!$forceload && !empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) return $array_name_label;