Skip to content

Commit c3a689d

Browse files
committed
Fixed check for active transaction
1 parent ebf759b commit c3a689d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DbWrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function beginTransaction()
104104
*/
105105
public function hasActiveTransaction()
106106
{
107-
return $this->pdo->inTransaction() === 1;
107+
return $this->pdo->inTransaction();
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)