Update extrafields.class.php
if no elementtype send at the function, they return an empty array
This commit is contained in:
parent
221d44a4b8
commit
730593b525
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user