mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Was outputting wrong SQL
git-svn-id: file:///svn/phpbb/trunk@675 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0aea503a65
commit
fc57ccc4cf
1 changed files with 4 additions and 2 deletions
|
@ -51,6 +51,8 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
|
||||||
global $userdata, $user_ip, $session_length;
|
global $userdata, $user_ip, $session_length;
|
||||||
global $starttime;
|
global $starttime;
|
||||||
|
|
||||||
|
$sql_store = $sql;
|
||||||
|
|
||||||
if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) )
|
if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) )
|
||||||
{
|
{
|
||||||
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
|
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
|
||||||
|
@ -149,9 +151,9 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
|
||||||
$debug_text .= "<br /><br />SQL Error : " . $sql_error['code'] . " " . $sql_error['message'];
|
$debug_text .= "<br /><br />SQL Error : " . $sql_error['code'] . " " . $sql_error['message'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($sql != "")
|
if($sql_store != "")
|
||||||
{
|
{
|
||||||
$debug_text .= "<br /><br />$sql";
|
$debug_text .= "<br /><br />$sql_store";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($err_line != "" && $err_file != "")
|
if($err_line != "" && $err_file != "")
|
||||||
|
|
Loading…
Add table
Reference in a new issue