From bed1d3ab9adadeea484384b38849ec568ef5d4ed Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 3 Jul 2001 22:50:56 +0000 Subject: Updates related to message.php and transaction update git-svn-id: file:///svn/phpbb/trunk@547 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'phpBB/includes/db.php') 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 -- cgit v1.2.1