aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db.php')
-rw-r--r--phpBB/includes/db.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/db.php b/phpBB/includes/db.php
index 3707299d56..916aa7e0d3 100644
--- a/phpBB/includes/db.php
+++ b/phpBB/includes/db.php
@@ -42,10 +42,9 @@ switch($dbms)
// Make the database connection.
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
-if(!$db)
+if(!$db->db_connect_id)
{
- $db_error = $db->sql_error();
- error_die(SQL_CONNECT, $db_error['message']);
+ message_die(CRITICAL_ERROR, "Could not connect to the database");
}
?> \ No newline at end of file