fixed db error recursion handling (commit 40f324b)

This commit is contained in:
following
2013-03-25 16:28:06 +01:00
parent 244b53939c
commit d7c8f86553
2 changed files with 6 additions and 5 deletions

View File

@@ -895,7 +895,10 @@
// build the error template (e.g. because connection was lost, or an error mail
// could not load translations from database)
$dberrmsg = 'MySQL error (' . $errno . '): ' . $error;
if ($opt['db']['error']['display'] == true)
$dberrmsg = 'MySQL error (' . $errno . '): ' . $error;
else
$dberrmsg = "";
require("html/dberror.php");
exit;
}