aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-06-06 10:54:51 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-06-06 10:54:51 +0000
commit2c8afb820e3842bed2ab6cec4053e71b5c566985 (patch)
tree68131fc384d2eb5f8040e32178fac372da076526 /phpBB/posting.php
parent2ab88e7c56619d303c991251522aaaf6ae454fa7 (diff)
downloadforums-2c8afb820e3842bed2ab6cec4053e71b5c566985.tar
forums-2c8afb820e3842bed2ab6cec4053e71b5c566985.tar.gz
forums-2c8afb820e3842bed2ab6cec4053e71b5c566985.tar.bz2
forums-2c8afb820e3842bed2ab6cec4053e71b5c566985.tar.xz
forums-2c8afb820e3842bed2ab6cec4053e71b5c566985.zip
make sure we check the attachment status for the correct user ;)
git-svn-id: file:///svn/phpbb/trunk@6014 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index ed725e062e..60e1411d41 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -297,10 +297,9 @@ if (isset($post_data['post_text']))
unset($post_data['post_text']);
}
-$message_parser->get_submitted_attachment_data();
-
// Set some default variables
$uninit = array('post_attachment' => 0, 'poster_id' => $user->data['user_id'], 'enable_magic_url' => 0, 'topic_status' => 0, 'topic_type' => POST_NORMAL, 'post_subject' => '', 'topic_title' => '', 'post_time' => 0, 'post_edit_reason' => '', 'notify_set' => 0);
+
foreach ($uninit as $var_name => $default_value)
{
if (!isset($post_data[$var_name]))
@@ -310,6 +309,8 @@ foreach ($uninit as $var_name => $default_value)
}
unset($uninit);
+$message_parser->get_submitted_attachment_data($post_data['poster_id']);
+
if ($post_data['post_attachment'] && !$submit && !$refresh && !$preview && $mode == 'edit')
{
$sql = 'SELECT attach_id, physical_filename, comment, real_filename, extension, mimetype, filesize, filetime, thumbnail