aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-10-29 06:02:04 -0700
committerCesar G <prototech91@gmail.com>2013-10-29 06:02:04 -0700
commit68d80f99520eb8d061473cff99dc26c25e9929ae (patch)
tree0df06bb4e5901dd2529132f1d3c7721bb30b0588
parentd437f1f133b17568c4bfa1e7e014b29351e9e2ed (diff)
downloadforums-68d80f99520eb8d061473cff99dc26c25e9929ae.tar
forums-68d80f99520eb8d061473cff99dc26c25e9929ae.tar.gz
forums-68d80f99520eb8d061473cff99dc26c25e9929ae.tar.bz2
forums-68d80f99520eb8d061473cff99dc26c25e9929ae.tar.xz
forums-68d80f99520eb8d061473cff99dc26c25e9929ae.zip
[ticket/11986] Fix undefined index: poster_id in file.php.
PHPBB3-11986
-rw-r--r--phpBB/download/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 04d68f6a48..7d39ee4821 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -181,7 +181,7 @@ else
trigger_error('NO_ATTACHMENT_SELECTED');
}
-$sql = 'SELECT attach_id, post_msg_id, topic_id, in_message, is_orphan, physical_filename, real_filename, extension, mimetype, filesize, filetime
+$sql = 'SELECT attach_id, post_msg_id, topic_id, in_message, poster_id, is_orphan, physical_filename, real_filename, extension, mimetype, filesize, filetime
FROM ' . ATTACHMENTS_TABLE . "
WHERE $sql_where";
$result = $db->sql_query($sql);