diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-05 13:33:18 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-05 13:33:18 +0000 |
commit | feee13f9621f6bed42e55207eb04a13e6c77deb5 (patch) | |
tree | 0049c8c969237f77de470fc717665cf8b0e7b78d /phpBB/includes/ucp/ucp_pm.php | |
parent | e2863ca2a3150eeb8a5b6e29f9f5e6773ed38237 (diff) | |
download | forums-feee13f9621f6bed42e55207eb04a13e6c77deb5.tar forums-feee13f9621f6bed42e55207eb04a13e6c77deb5.tar.gz forums-feee13f9621f6bed42e55207eb04a13e6c77deb5.tar.bz2 forums-feee13f9621f6bed42e55207eb04a13e6c77deb5.tar.xz forums-feee13f9621f6bed42e55207eb04a13e6c77deb5.zip |
fixing some language and style bugs...
git-svn-id: file:///svn/phpbb/trunk@8079 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_pm.php b/phpBB/includes/ucp/ucp_pm.php index 63660b006d..426b9a9c5b 100644 --- a/phpBB/includes/ucp/ucp_pm.php +++ b/phpBB/includes/ucp/ucp_pm.php @@ -245,10 +245,10 @@ class ucp_pm if ($user->data['user_new_privmsg'] && $action == 'view_folder') { $return = place_pm_into_folder($global_privmsgs_rules, request_var('release', 0)); - $num_not_moved = $user->data['user_new_privmsg']; + $num_not_moved = $return['not_moved']; // Make sure num_not_moved is valid. - if ($num_not_moved < 0) + if ($user->data['user_new_privmsg'] < 0 || $num_not_moved < 0) { $sql = 'UPDATE ' . USERS_TABLE . ' SET user_new_privmsg = 0, user_unread_privmsg = 0 |