mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/11480] Move the test into get_folder()
PHPBB3-11480
This commit is contained in:
parent
0ce27eacb1
commit
8bdfda723c
2 changed files with 1 additions and 7 deletions
|
@ -208,7 +208,7 @@ function get_folder($user_id, $folder_id = false)
|
|||
);
|
||||
}
|
||||
|
||||
if ($folder_id !== false && !isset($folder[$folder_id]))
|
||||
if ($folder_id !== false && $folder_id !== PRIVMSGS_HOLD_BOX && !isset($folder[$folder_id]))
|
||||
{
|
||||
trigger_error('UNKNOWN_FOLDER');
|
||||
}
|
||||
|
|
|
@ -272,12 +272,6 @@ class ucp_pm
|
|||
$folder_id = (int) $row['folder_id'];
|
||||
}
|
||||
|
||||
// Do not allow hold messages to be seen
|
||||
if ($folder_id == PRIVMSGS_HOLD_BOX)
|
||||
{
|
||||
trigger_error('NO_AUTH_READ_HOLD_MESSAGE');
|
||||
}
|
||||
|
||||
$message_row = array();
|
||||
if ($action == 'view_message' && $msg_id)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue