Try to FIX #28482
This commit is contained in:
parent
35e353cf0a
commit
ef9c6aa04c
3 changed files with 3 additions and 3 deletions
|
|
@ -221,7 +221,7 @@ $dolibarr_main_url_root_alt = (empty($dolibarr_main_url_root_alt) ? '' : trim($d
|
|||
$dolibarr_main_document_root = (empty($dolibarr_main_document_root) ? '' : trim($dolibarr_main_document_root));
|
||||
$dolibarr_main_document_root_alt = (empty($dolibarr_main_document_root_alt) ? '' : trim($dolibarr_main_document_root_alt));
|
||||
|
||||
if (empty($dolibarr_main_db_port)) {
|
||||
if (!isset($dolibarr_main_db_port)) {
|
||||
$dolibarr_main_db_port = 3306; // For compatibility with old configs, if not defined, we take 'mysql' type
|
||||
}
|
||||
if (empty($dolibarr_main_db_type)) {
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ if (!defined('DONOTLOADCONF') && file_exists($conffile) && filesize($conffile) >
|
|||
$dolibarr_main_db_type = 'mysqli';
|
||||
}
|
||||
|
||||
if (empty($dolibarr_main_db_port) && ($dolibarr_main_db_type == 'mysqli')) {
|
||||
if (!isset($dolibarr_main_db_port) && ($dolibarr_main_db_type == 'mysqli')) {
|
||||
$dolibarr_main_db_port = '3306'; // For backward compatibility
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ if (!defined('DONOTLOADCONF') && file_exists($conffile) && filesize($conffile) >
|
|||
$dolibarr_main_db_type = 'mysqli';
|
||||
}
|
||||
|
||||
if (empty($dolibarr_main_db_port) && ($dolibarr_main_db_type == 'mysqli')) {
|
||||
if (!isset($dolibarr_main_db_port) && ($dolibarr_main_db_type == 'mysqli')) {
|
||||
$dolibarr_main_db_port = '3306'; // For backward compatibility
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue