diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2012-08-07 00:10:24 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2012-08-07 00:10:24 +0200 |
| commit | 2d32164fb074e12f12a38cc41f424611551d9573 (patch) | |
| tree | e9ec7ced5bd0246b16cf667f9aee65ae8da66d6b | |
| parent | 3fe8344104d867a0ce5ec2ba9eebddf7cdc9f143 (diff) | |
| download | forums-2d32164fb074e12f12a38cc41f424611551d9573.tar forums-2d32164fb074e12f12a38cc41f424611551d9573.tar.gz forums-2d32164fb074e12f12a38cc41f424611551d9573.tar.bz2 forums-2d32164fb074e12f12a38cc41f424611551d9573.tar.xz forums-2d32164fb074e12f12a38cc41f424611551d9573.zip | |
[feature/attach-dl] Remove unnecessary LIMIT from primary key query.
PHPBB3-11042
| -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 d8ee4082a5..f540869a1e 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -167,7 +167,7 @@ if ($download_id) $sql = 'SELECT attach_id, in_message, post_msg_id, extension, is_orphan, poster_id, filetime FROM ' . ATTACHMENTS_TABLE . " WHERE attach_id = $download_id"; - $result = $db->sql_query_limit($sql, 1); + $result = $db->sql_query($sql); $attachment = $db->sql_fetchrow($result); $db->sql_freeresult($result); } |
