diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-15 14:17:03 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-01-15 14:17:03 +1100 |
| commit | c17a26d689642a694e58ff25bf46f09862ac6fa2 (patch) | |
| tree | c78723f39be2d34fff8562d396b5a056f995aaf6 /inc/database.php | |
| parent | dbae5dbf56a6659b5c06740e8e41cdc5fecbc1d0 (diff) | |
Fixed a small mistake, not causing any major problems
Diffstat (limited to 'inc/database.php')
| -rw-r--r-- | inc/database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/database.php b/inc/database.php index e9780640..3ae66c29 100644 --- a/inc/database.php +++ b/inc/database.php @@ -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); |
