aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-06-06 17:04:56 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-06-06 17:04:56 +0000
commite3033d80d3853de7436f1871e1f959234c787022 (patch)
tree1041cecb1172c4cc0ff7e5cda236e47449fd0ce2 /phpBB/includes/ucp/ucp_pm.php
parent8f692db40798eb3cef62eb22b626c4afa683cb1a (diff)
downloadforums-e3033d80d3853de7436f1871e1f959234c787022.tar
forums-e3033d80d3853de7436f1871e1f959234c787022.tar.gz
forums-e3033d80d3853de7436f1871e1f959234c787022.tar.bz2
forums-e3033d80d3853de7436f1871e1f959234c787022.tar.xz
forums-e3033d80d3853de7436f1871e1f959234c787022.zip
#12105
git-svn-id: file:///svn/phpbb/trunk@7719 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm.php')
-rw-r--r--phpBB/includes/ucp/ucp_pm.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php
index 73bb3411cd..88ca6d64f5 100644
--- a/phpBB/includes/ucp/ucp_pm.php
+++ b/phpBB/includes/ucp/ucp_pm.php
@@ -271,7 +271,8 @@ class ucp_pm
$sql = 'SELECT folder_id
FROM ' . PRIVMSGS_TO_TABLE . "
WHERE msg_id = $msg_id
- AND user_id = " . $user->data['user_id'];
+ AND folder_id <> " . PRIVMSGS_NO_BOX . '
+ AND user_id = ' . $user->data['user_id'];
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);