mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Fix: mysqli works on localhost
This commit is contained in:
@@ -231,8 +231,9 @@ class DoliDb
|
||||
{
|
||||
dolibarr_syslog("DoliDB::connect host=$host, port=$port, login=$login, passwd=--hidden--, name=$name",LOG_DEBUG);
|
||||
|
||||
// With mysql, port must be in hostname
|
||||
$newhost=$host;
|
||||
|
||||
// With mysql, port must be in hostname
|
||||
if ($port) $newhost.=':'.$port;
|
||||
|
||||
$this->db = @mysql_connect($newhost, $login, $passwd);
|
||||
|
||||
Reference in New Issue
Block a user