summaryrefslogtreecommitdiff
path: root/framework/DataAccess/TAdodb.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/DataAccess/TAdodb.php')
-rw-r--r--framework/DataAccess/TAdodb.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/DataAccess/TAdodb.php b/framework/DataAccess/TAdodb.php
index c7005c76..cd188e49 100644
--- a/framework/DataAccess/TAdodb.php
+++ b/framework/DataAccess/TAdodb.php
@@ -143,6 +143,7 @@ class TAdodb extends TDatabaseProvider
*/
public function getConnection()
{
+ $this->init(null);
return $this->_connection;
}
@@ -303,9 +304,10 @@ class TAdodbConnection extends TDbConnection
*/
public function __construct($provider=null)
{
- parent::__construct($provider);
if(is_string($provider))
$this->initProvider($provider);
+ else
+ parent::__construct($provider);
}
/**
@@ -329,7 +331,6 @@ class TAdodbConnection extends TDbConnection
//close any open connections before serializing.
$this->close();
$this->_connection = null;
- return array_keys(get_object_vars($this));
}
/**