Changeset 23440
- Timestamp:
- 2014/05/23 13:41:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_Query.php
r23378 r23440 201 201 public function commit() 202 202 { 203 return $this->conn->commit(); 203 if ($this->inTransaction()) { 204 return $this->conn->commit(); 205 } else { 206 return false; 207 } 204 208 } 205 209 … … 223 227 public function rollback() 224 228 { 225 return $this->conn->rollback(); 229 if ($this->inTransaction()) { 230 return $this->conn->rollback(); 231 } else { 232 return false; 233 } 226 234 } 227 235
Note: See TracChangeset
for help on using the changeset viewer.