Commit 2e36bdcb authored by Dries's avatar Dries

- Patch #517502 by andrea.gariboldi: make Transaction API follow its own documentation.

parent bf501fda
......@@ -891,7 +891,7 @@ public function pushTransaction() {
}
// Reset any scheduled rollback
$this->willRollBack = FALSE;
$this->willRollback = FALSE;
}
}
......@@ -912,7 +912,7 @@ public function popTransaction() {
--$this->transactionLayers;
if ($this->transactionLayers == 0 && $this->supportsTransactions()) {
if ($this->willRollBack) {
if ($this->willRollback) {
parent::rollBack();
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment