Improve HttpInput::extract , the array is set and not passed anymore

This commit is contained in:
sparkyx 2021-09-30 20:45:29 +02:00
parent 5d70f21dfa
commit 0142c9cb93
9 changed files with 353 additions and 55 deletions

View file

@ -200,11 +200,12 @@ $order
* Check needed info
*/
$http=new HttpInput();
$p_nom_mod = $http->extract($array,'nom_mod',"string","");
$p_fd_description = $http->extract($array,'fd_description',"string", "");
$p_class_base=$http->extract($array,'class_base',"string", "");
$p_fiche_def= $http->extract($array,'FICHE_REF',"string", "");
$p_create= $http->extract($array,'create',"string", "off");
$http->set_array($array);
$p_nom_mod = $http->extract('nom_mod',"string","");
$p_fd_description = $http->extract('fd_description',"string", "");
$p_class_base=$http->extract('class_base',"string", "");
$p_fiche_def= $http->extract('FICHE_REF',"string", "");
$p_create= $http->extract('create',"string", "off");
// If there is no description then add a empty one
if ( ! isset ($p_fd_description)) {