From 4f6441b4117e8b7801f67f1104b9435bfa19295a Mon Sep 17 00:00:00 2001 From: Nicofuma Date: Fri, 25 Apr 2014 01:04:00 +0200 Subject: [ticket/11480] PM : "Unknown folder" returned when inbox folder is full https://tracker.phpbb.com/browse/PHPBB3-11480 PHPBB3-11480 --- phpBB/includes/ucp/ucp_pm.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB/includes') diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php index 447b6ebe87..2a718c0701 100644 --- a/phpBB/includes/ucp/ucp_pm.php +++ b/phpBB/includes/ucp/ucp_pm.php @@ -272,6 +272,12 @@ 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) { -- cgit v1.2.1