Fixed a small mistake, not causing any major problems
This commit is contained in:
parent
dbae5dbf56
commit
c17a26d689
@ -5,7 +5,7 @@
|
|||||||
if($pdo) return true;
|
if($pdo) return true;
|
||||||
|
|
||||||
$dsn = DB_TYPE . ':host=' . DB_SERVER . ';dbname=' . DB_DATABASE;
|
$dsn = DB_TYPE . ':host=' . DB_SERVER . ';dbname=' . DB_DATABASE;
|
||||||
if(!empty($dsn))
|
if(!empty(DB_DSN))
|
||||||
$dsn .= ';' . DB_DSN;
|
$dsn .= ';' . DB_DSN;
|
||||||
try {
|
try {
|
||||||
return $pdo = new PDO($dsn, DB_USER, DB_PASSWORD);
|
return $pdo = new PDO($dsn, DB_USER, DB_PASSWORD);
|
||||||
|
Loading…
Reference in New Issue
Block a user