diff --git a/htdocs/soc.php b/htdocs/soc.php index 44e67fc8868..e099b7859bb 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -54,7 +54,7 @@ if (! $step) $step++; /* * Actions */ -if (($_POST["action"] == 'add' && (! defined(COMPANY_CREATE_TWO_STEPS) || $step == 2)) or $_POST["action"] == 'update') +if (($_POST["action"] == 'add' && (! defined("COMPANY_CREATE_TWO_STEPS") || $step == 2)) or $_POST["action"] == 'update') { $soc->nom = stripslashes($_POST["nom"]); $soc->adresse = stripslashes($_POST["adresse"]); @@ -190,7 +190,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') $soc->pays=$obj->libelle; } - if ($step==1 && defined(COMPANY_CREATE_TWO_STEPS)) { + if ($step==1 && defined("COMPANY_CREATE_TWO_STEPS")) { print ''.$langs->trans('Country').''; $form->select_pays($soc->pays_id); print ''; @@ -200,11 +200,11 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''."\n"; } - if ($step==2 || ! defined(COMPANY_CREATE_TWO_STEPS)) { + if ($step==2 || ! defined("COMPANY_CREATE_TWO_STEPS")) { print ''.$langs->trans('CustomerCode').''; - if (defined(COMPANY_CREATE_TWO_STEPS)) { + if (defined("COMPANY_CREATE_TWO_STEPS")) { print ''.$langs->trans('Country').''; print $soc->pays; print ''; @@ -226,7 +226,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''.$langs->trans('Town').''; print ''.$langs->trans('State').''; - $form->select_departement($soc->departement_id,(defined(COMPANY_CREATE_TWO_STEPS)?$soc->pays_code:0)); + $form->select_departement($soc->departement_id,(defined("COMPANY_CREATE_TWO_STEPS")?$soc->pays_code:0)); print ''; print ''.$langs->trans('Phone').''; @@ -241,7 +241,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''.$langs->trans('Capital').' '.$conf->monnaie.''; print ''.$langs->trans('JuridicalStatus').''; - $form->select_forme_juridique($soc->forme_juridique_code,(defined(COMPANY_CREATE_TWO_STEPS)?$soc->pays_code:0)); + $form->select_forme_juridique($soc->forme_juridique_code,(defined("COMPANY_CREATE_TWO_STEPS")?$soc->pays_code:0)); print ''; print ''.$langs->trans("Type").''; @@ -269,7 +269,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''."\n"; print ''; - if (defined(COMPANY_CREATE_TWO_STEPS)) { + if (defined("COMPANY_CREATE_TWO_STEPS")) { print '     '; } print ''."\n";