aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-03 22:50:56 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-03 22:50:56 +0000
commitbed1d3ab9adadeea484384b38849ec568ef5d4ed (patch)
tree5d171f119a1df14122015fd7861204e881c4692c /phpBB/includes/db.php
parent356f845abc4ed17322c7afc904ba4a67718327d2 (diff)
downloadforums-bed1d3ab9adadeea484384b38849ec568ef5d4ed.tar
forums-bed1d3ab9adadeea484384b38849ec568ef5d4ed.tar.gz
forums-bed1d3ab9adadeea484384b38849ec568ef5d4ed.tar.bz2
forums-bed1d3ab9adadeea484384b38849ec568ef5d4ed.tar.xz
forums-bed1d3ab9adadeea484384b38849ec568ef5d4ed.zip
Updates related to message.php and transaction update
git-svn-id: file:///svn/phpbb/trunk@547 89ea8834-ac86-4346-8a33-228a782c2dd0
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