519 |
*/ |
*/ |
520 |
|
|
521 |
function UpdateFiche($p_cn,$p_array) { |
function UpdateFiche($p_cn,$p_array) { |
522 |
echo_debug ("UpdateFiche"); |
echo_debug (__FILE__,__LINE__,"UpdateFiche"); |
523 |
$tva_error=false; |
$tva_error=false; |
524 |
foreach ( $p_array as $key=> $element) { |
foreach ( $p_array as $key=> $element) { |
525 |
echo_debug(__FILE__,__LINE__,"$key => $element"); |
echo_debug(__FILE__,__LINE__,"UF $key => $element"); |
526 |
${"$key"}=$element; |
${"$key"}=$element; |
527 |
// Get the name |
// Get the name |
528 |
if ( $key == "ad_id".ATTR_DEF_NAME ) { |
if ( $key == "ad_id".ATTR_DEF_NAME ) { |
529 |
$label=$element; |
$label=$element; |
530 |
if (strlen(trim($label)== 0 ) ) |
if (strlen(trim($label))== 0 ) |
531 |
return; |
return; |
532 |
} |
} |
533 |
// Get the class base |
// Get the class base |