mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
minor bugfixing
git-svn-id: file:///svn/phpbb/trunk@6719 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -438,7 +438,7 @@ class dbal
|
||||
*/
|
||||
function sql_error($sql = '')
|
||||
{
|
||||
global $auth, $user;
|
||||
global $auth, $user, $config;
|
||||
|
||||
// Set var to retrieve errored status
|
||||
$this->sql_error_triggered = true;
|
||||
@@ -472,7 +472,14 @@ class dbal
|
||||
}
|
||||
else
|
||||
{
|
||||
$message .= '<br /><br />' . $user->lang['SQL_ERROR_OCCURRED'];
|
||||
if (!empty($config['board_contact']))
|
||||
{
|
||||
$message .= '<br /><br />' . sprintf($user->lang['SQL_ERROR_OCCURRED'], '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>');
|
||||
}
|
||||
else
|
||||
{
|
||||
$message .= '<br /><br />' . sprintf($user->lang['SQL_ERROR_OCCURRED'], '', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user