diff options
Diffstat (limited to 'include/dba/dba_driver.php')
-rw-r--r-- | include/dba/dba_driver.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index 152be7f88..631513819 100644 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -67,9 +67,17 @@ class DBA { require_once('include/dba/dba_pdo.php'); self::$dba = new dba_pdo($server,self::$scheme,$port,$user,$pass,$db,$db_charset,$install); - define('NULL_DATE', self::$null_date); - define('ACTIVE_DBTYPE', self::$dbtype); - define('TQUOT', self::$tquot); + if (!defined('NULL_DATE')) { + define('NULL_DATE', self::$null_date); + } + + if (!defined('ACTIVE_DBTYPE')) { + define('ACTIVE_DBTYPE', self::$dbtype); + } + + if (!defined('TQUOT')) { + define('TQUOT', self::$tquot); + } return self::$dba; } |