aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-17 13:28:23 +0000
committerMario <mario@mariovavti.com>2023-05-17 13:28:23 +0000
commit65d98af24c3c7b784f7e2c95998df65901011ce3 (patch)
treed7d6a60698d7a0c3704ea55cb71c543285186b17 /include/dba
parenta57739c462a7991bf2130e8eca0c383eb276f0cd (diff)
parent62d35627f35537d0056482047e74a27ad837c3cf (diff)
downloadvolse-hubzilla-65d98af24c3c7b784f7e2c95998df65901011ce3.tar.gz
volse-hubzilla-65d98af24c3c7b784f7e2c95998df65901011ce3.tar.bz2
volse-hubzilla-65d98af24c3c7b784f7e2c95998df65901011ce3.zip
Merge branch '8.4RC'8.4
Diffstat (limited to 'include/dba')
-rw-r--r--include/dba/dba_driver.php14
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;
}