diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-06 10:54:51 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-06 10:54:51 +0000 |
| commit | 2c8afb820e3842bed2ab6cec4053e71b5c566985 (patch) | |
| tree | 68131fc384d2eb5f8040e32178fac372da076526 /phpBB/posting.php | |
| parent | 2ab88e7c56619d303c991251522aaaf6ae454fa7 (diff) | |
| download | forums-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.php | 5 |
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 |
