mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 17:18:13 +01:00
Better fix
This commit is contained in:
@@ -386,7 +386,7 @@ class DoliDBPgsql
|
||||
if (! $name) $name="postgres"; // When try to connect using admin user
|
||||
|
||||
// try first Unix domain socket (local)
|
||||
if ((empty($host) || $host == "socket") && ! defined('NOLOCALSOCKETPGCONNECT'))
|
||||
if ((! empty($host) && $host == "socket") && ! defined('NOLOCALSOCKETPGCONNECT'))
|
||||
{
|
||||
$con_string = "dbname='".$name."' user='".$login."' password='".$passwd."'"; // $name may be empty
|
||||
$this->db = pg_connect($con_string);
|
||||
|
||||
Reference in New Issue
Block a user