From ead4422667100b087c68b95164185feffc43336c Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Sun, 25 Feb 2001 01:22:36 +0000 Subject: A forum with no forums/cats now shows a nice message insted of a big ugly messed up template git-svn-id: file:///svn/phpbb/trunk@56 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/functions/error.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/functions') diff --git a/phpBB/functions/error.php b/phpBB/functions/error.php index acfce126c2..29a985c714 100644 --- a/phpBB/functions/error.php +++ b/phpBB/functions/error.php @@ -34,6 +34,12 @@ function error_die($db, $error_code = "", $error_msg = "") { switch($error_code) { + case GENERAL_ERROR: + if(!$error_msg) + { + $error_msg = "An Error Occured"; + } + break; case SQL_CONNECT: $db_error = $db->sql_error(); $error_msg = "Error: phpBB could not connect to the database. Reason: " . $db_error["message"]; -- cgit v1.2.1