summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index e7d4b644..9656de35 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -270,6 +270,8 @@
if(empty($result))
$result = $DB['TRANSACTION_STATE'];
+
+//SDI('Result: '.$result);
if($result){ // OK
$result = DBcommit();
@@ -415,6 +417,12 @@
break;
}
+ if($DB['TRANSACTIONS'] && !$result){
+ $DB['TRANSACTION_STATE'] &= $result;
+// SDI($query);
+// SDI($DB['TRANSACTION_STATE']);
+ }
+
return $result;
}
@@ -470,7 +478,8 @@
}
break;
}
- if($DB['TRANSACTIONS']){
+
+ if($DB['TRANSACTIONS'] && !$result){
$DB['TRANSACTION_STATE'] &= $result;
// SDI($query);
// SDI($DB['TRANSACTION_STATE']);