aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-16 00:17:30 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-16 00:17:30 +0000
commitfc57ccc4cf7c6c34f973366366b3c1719d4d0074 (patch)
treece0a3ca5613b1c8ef0f463ec92ab931be9dc8433
parent0aea503a65a51cc5f4c7ede271be443d23196d46 (diff)
downloadforums-fc57ccc4cf7c6c34f973366366b3c1719d4d0074.tar
forums-fc57ccc4cf7c6c34f973366366b3c1719d4d0074.tar.gz
forums-fc57ccc4cf7c6c34f973366366b3c1719d4d0074.tar.bz2
forums-fc57ccc4cf7c6c34f973366366b3c1719d4d0074.tar.xz
forums-fc57ccc4cf7c6c34f973366366b3c1719d4d0074.zip
Was outputting wrong SQL
git-svn-id: file:///svn/phpbb/trunk@675 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/message.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/message.php b/phpBB/includes/message.php
index e097b34bf7..9cacc5a786 100644
--- a/phpBB/includes/message.php
+++ b/phpBB/includes/message.php
@@ -51,6 +51,8 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
global $userdata, $user_ip, $session_length;
global $starttime;
+ $sql_store = $sql;
+
if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) )
{
$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'];
}
- if($sql != "")
+ if($sql_store != "")
{
- $debug_text .= "<br /><br />$sql";
+ $debug_text .= "<br /><br />$sql_store";
}
if($err_line != "" && $err_file != "")