Fixed a small mistake, not causing any major problems

This commit is contained in:
Savetheinternet 2011-01-15 14:17:03 +11:00
parent dbae5dbf56
commit c17a26d689

View File

@ -5,7 +5,7 @@
if($pdo) return true;
$dsn = DB_TYPE . ':host=' . DB_SERVER . ';dbname=' . DB_DATABASE;
if(!empty($dsn))
if(!empty(DB_DSN))
$dsn .= ';' . DB_DSN;
try {
return $pdo = new PDO($dsn, DB_USER, DB_PASSWORD);