mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/attach-dl] Remove unnecessary LIMIT from primary key query.
PHPBB3-11042
This commit is contained in:
parent
3fe8344104
commit
2d32164fb0
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ if ($download_id)
|
||||||
$sql = 'SELECT attach_id, in_message, post_msg_id, extension, is_orphan, poster_id, filetime
|
$sql = 'SELECT attach_id, in_message, post_msg_id, extension, is_orphan, poster_id, filetime
|
||||||
FROM ' . ATTACHMENTS_TABLE . "
|
FROM ' . ATTACHMENTS_TABLE . "
|
||||||
WHERE attach_id = $download_id";
|
WHERE attach_id = $download_id";
|
||||||
$result = $db->sql_query_limit($sql, 1);
|
$result = $db->sql_query($sql);
|
||||||
$attachment = $db->sql_fetchrow($result);
|
$attachment = $db->sql_fetchrow($result);
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue