diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-04 14:08:49 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-04 14:08:49 +0100 |
commit | 0cad61efbf5292e61c8ad73f7aa334854ecee25c (patch) | |
tree | 838de434d5a5f8b487b04e6ea525051af38a3f6b /phpBB | |
parent | 18d7210a11b4d98c50ad55bb427c8cd2cc14a2f1 (diff) | |
download | forums-0cad61efbf5292e61c8ad73f7aa334854ecee25c.tar forums-0cad61efbf5292e61c8ad73f7aa334854ecee25c.tar.gz forums-0cad61efbf5292e61c8ad73f7aa334854ecee25c.tar.bz2 forums-0cad61efbf5292e61c8ad73f7aa334854ecee25c.tar.xz forums-0cad61efbf5292e61c8ad73f7aa334854ecee25c.zip |
[feature/attach-dl] Added table prefix to columns
PHPBB3-11042
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/download/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 25fd9945ec..2346f9357c 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -173,7 +173,7 @@ if ($download_id) if ($topic_id) { - $sql = 'SELECT attach_id, in_message, post_msg_id, extension, is_orphan, a.poster_id, filetime + $sql = 'SELECT a.attach_id, a.in_message, a.post_msg_id, a.extension, a.is_orphan, a.poster_id, a.filetime FROM ' . POSTS_TABLE . ' p, ' . ATTACHMENTS_TABLE . " a WHERE p.topic_id = $topic_id AND p.post_attachment = 1 |