Works on paypal module
Fix: problem with db begin
This commit is contained in:
parent
e72e0aa3ef
commit
4a8be94190
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user