aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/functions')
-rw-r--r--phpBB/functions/error.php6
1 files changed, 6 insertions, 0 deletions
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"];