summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2020-07-09 10:44:07 +0200
committerAndrey Andreev <narf@devilix.net>2020-07-09 10:44:07 +0200
commit899338a3ea4651533493ffd9d1ce7002e9ddf53e (patch)
treea87dc6602f81733f27072681dfc474cd882fd5ae /system/database/drivers/postgre
parent3de79e995faf021fab70b6a82ec57e9fdb0dbedb (diff)
[ci skip] Correct fix for #5906
Diffstat (limited to 'system/database/drivers/postgre')
-rw-r--r--system/database/drivers/postgre/postgre_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index 87b79a89b..84717d8b5 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -139,7 +139,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
public function db_connect($persistent = FALSE)
{
- empty($this->dsn) OR $this->_build_dsn();
+ empty($this->dsn) && $this->_build_dsn();
$this->conn_id = ($persistent === TRUE)
? pg_pconnect($this->dsn)
: pg_connect($this->dsn);