Fix: Dans un context de transactions imbriques, le commit pouvait se faire dans un sous niveau

This commit is contained in:
Laurent Destailleur 2006-06-17 17:50:22 +00:00
parent 3af5d793a6
commit e904da75ba
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ class DoliDb
function rollback()
{
if ($this->transaction_opened)
if ($this->transaction_opened==1)
{
$ret=$this->query("ROLLBACK");
$this->transaction_opened=0;

View File

@ -326,7 +326,7 @@ class DoliDb
*/
function rollback()
{
if ($this->transaction_opened)
if ($this->transaction_opened==1)
{
$ret=$this->query("ROLLBACK;");
$this->transaction_opened=0;