summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/database/DB_driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 733522284..96becd767 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -829,13 +829,13 @@ abstract class CI_DB_driver {
// --------------------------------------------------------------------
/**
- * Lets you retrieve the transaction depth
+ * Returns whether a transaction is currently active
*
- * @return int
+ * @return bool
*/
- public function trans_depth()
+ public function trans_active()
{
- return $this->_trans_depth;
+ return (bool) $this->_trans_depth;
}
// --------------------------------------------------------------------