Qual: Uniformize code

This commit is contained in:
Juanjo Menent 2011-09-06 09:33:24 +00:00
parent 004b8e88c9
commit 71c98d380a
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ $action = GETPOST("action");
if ($action == 'setvalue' && $user->admin)
{
$db->begin;
$db->begin();
//$result=dolibarr_set_const($db, "PAYBOX_IBS_DEVISE",$_POST["PAYBOX_IBS_DEVISE"],'chaine',0,'',$conf->entity);
$result=dolibarr_set_const($db, "PAYBOX_CGI_URL_V1", GETPOST("PAYBOX_CGI_URL_V1"),'chaine',0,'',$conf->entity);
if (! $result > 0) $error++;

View File

@ -43,7 +43,7 @@ $action = GETPOST("action");
if ($action == 'setvalue' && $user->admin)
{
$db->begin;
$db->begin();
$result=dolibarr_set_const($db, "PAYPAL_API_SANDBOX",GETPOST("PAYPAL_API_SANDBOX"),'chaine',0,'',$conf->entity);
if (! $result > 0) $error++;
$result=dolibarr_set_const($db, "PAYPAL_API_USER",GETPOST("PAYPAL_API_USER"),'chaine',0,'',$conf->entity);