mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
[feature/attach-dl] Swapped the order of an if statement
PHPBB3-11042
This commit is contained in:
@@ -300,13 +300,13 @@ else if ($download_id)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// sizeof($attachments) >= 1
|
// sizeof($attachments) >= 1
|
||||||
if (!$attachment['in_message'])
|
if ($attachment['in_message'])
|
||||||
{
|
{
|
||||||
phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
|
phpbb_download_handle_pm_auth($db, $auth, $user->data['user_id'], $attachment['post_msg_id']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
phpbb_download_handle_pm_auth($db, $auth, $user->data['user_id'], $attachment['post_msg_id']);
|
phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists('compress'))
|
if (!class_exists('compress'))
|
||||||
|
Reference in New Issue
Block a user