diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index ca85fad2e21..c5cc14d7fae 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -70,6 +70,9 @@ class Export public $array_export_TypeFields = array(); // Tableau des listes de champ+Type de filtre public $array_export_FilterValue = array(); // Tableau des listes de champ+Valeur a filtrer public $array_export_entities = array(); // Tableau des listes de champ+alias a exporter + /** + * @var array> + */ public $array_export_dependencies = array(); // array of list of entities that must take care of the DISTINCT if a field is added into export public $array_export_special = array(); // array of special operations to do on field public $array_export_examplevalues = array(); // array with examples for fields diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index 9262f6d5457..a88898faaa8 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -146,7 +146,7 @@ $step = GETPOSTINT("step") ? GETPOSTINT("step") : 1; $export_name = GETPOST("export_name", "alphanohtml"); $hexa = GETPOST("hexa", "alpha"); $exportmodelid = GETPOSTINT("exportmodelid"); -$field = GETPOST("field", "alpha"); +$field = (string) GETPOST("field", "alpha"); $objexport = new Export($db); $objexport->load_arrays($user, $datatoexport);