aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-07 11:40:40 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-07 11:40:40 +0000
commite51b0b1cc8ad9f77ae710c97546b7bc2b827f5dc (patch)
tree9804f7863bdd7aa0016c5dae8e181246eaed76e9
parent617135a75e6e0e509685c0a83ff5ea2b7c4c7639 (diff)
downloadforums-e51b0b1cc8ad9f77ae710c97546b7bc2b827f5dc.tar
forums-e51b0b1cc8ad9f77ae710c97546b7bc2b827f5dc.tar.gz
forums-e51b0b1cc8ad9f77ae710c97546b7bc2b827f5dc.tar.bz2
forums-e51b0b1cc8ad9f77ae710c97546b7bc2b827f5dc.tar.xz
forums-e51b0b1cc8ad9f77ae710c97546b7bc2b827f5dc.zip
Fixed for reply bug
git-svn-id: file:///svn/phpbb/trunk@598 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/privmsg.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php
index 2d49d82233..f70c0c6c39 100644
--- a/phpBB/privmsg.php
+++ b/phpBB/privmsg.php
@@ -646,10 +646,11 @@ else if($mode == "post" || $mode == "reply" || $mode == "edit")
}
else
{
- $privmsg_sent_id = $db->sql_nextid($pm_sent_status);
if($mode != "edit")
{
+ $privmsg_sent_id = $db->sql_nextid();
+
$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text)
VALUES ($privmsg_sent_id, '$message')";
}
@@ -811,6 +812,12 @@ else if($mode == "post" || $mode == "reply" || $mode == "edit")
else if($mode == 'reply')
{
$post_a = $lang['Send_a_reply'];
+ //
+ // Switch mode to post ... it's a bit of a cheat really but once the basic
+ // info for the reply is determined it really becomes a new post ... so why
+ // do it any other way?!
+ //
+ $mode = "post";
}
else if($mode == 'edit')
{