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,6 +567,8 @@ class ExtraFields
{ {
global $conf; global $conf;
if ( empty($elementtype) ) return array();
if ($elementtype == 'thirdparty') $elementtype='societe'; if ($elementtype == 'thirdparty') $elementtype='societe';
$array_name_label=array(); $array_name_label=array();