aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-04-22 21:40:33 -0700
committerfriendica <info@friendica.com>2013-04-22 21:40:33 -0700
commit9bff33f112b2ad60f17a9a75cd154f8c21b4dc56 (patch)
treec94cacaa5de6a518760ce30b9ed0907d2931b7ec /include/dba/dba_driver.php
parent150b18005ac69896894d2c7e2b3fccc3c23eefec (diff)
downloadvolse-hubzilla-9bff33f112b2ad60f17a9a75cd154f8c21b4dc56.tar.gz
volse-hubzilla-9bff33f112b2ad60f17a9a75cd154f8c21b4dc56.tar.bz2
volse-hubzilla-9bff33f112b2ad60f17a9a75cd154f8c21b4dc56.zip
remove old driver
Diffstat (limited to 'include/dba/dba_driver.php')
-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();
+ }
+ }
+
}