Works on paypal module

Fix: problem with db begin
This commit is contained in:
Regis Houssin 2011-05-25 06:58:05 +00:00
parent e72e0aa3ef
commit 4a8be94190

View File

@ -69,6 +69,8 @@ if (isset($_GET['action']) && ! empty($_GET['action']) && isset($_GET['transacti
$error=0;
$return_arr = array();
$db->begin();
// Create customer if not exists
$ret = $soc->fetchObjectFrom($soc->table_element,'ref_int',$_SESSION[$_GET['transaction_id']]['PAYERID']);
if ($ret < 0)
@ -98,8 +100,6 @@ if (isset($_GET['action']) && ! empty($_GET['action']) && isset($_GET['transacti
$soc->client = 1;
$soc->particulier = 1;
$db->begin();
$result = $soc->create($user);
if ($result >= 0)
{