From 126979efe1172931b854501f5d5c8ab859f04104 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 Jul 2012 12:25:45 +0200 Subject: [PATCH] Fix: All "isset" must not be replaced by "GETPOST". If isset is used to know if value is defined (and not to know if value is null), we must keep the isset. --- htdocs/societe/soc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 1b8e8a33604..06a10088449 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -1696,7 +1696,7 @@ else { foreach($extrafields->attribute_label as $key=>$label) { - $value=(GETPOST('options_'.$key)?GETPOST('options_'.$key):(isset($object->array_options['options_'.$key])?$object->array_options['options_'.$key]:'')); + $value=(isset($_POST["options_".$key])?$_POST["options_".$key]:(isset($object->array_options['options_'.$key])?$object->array_options['options_'.$key]:'')); print ''.$label.''; print $extrafields->showOutputField($key,$value); print "\n";