aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
Diffstat (limited to 'include/dba')
-rw-r--r--include/dba/dba_driver.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 2f0555718..cdc79e9a1 100644
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -60,6 +60,16 @@ abstract class dba_driver {
}
+ function dbg($dbg) {
+ $this->debug = $dbg;
+ }
+
+ function __destruct() {
+ if($this->db && $this->connected) {
+ $this->close();
+ }
+ }
+
}