diff options
author | Cesar G <prototech91@gmail.com> | 2014-05-02 12:06:00 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-05-02 13:05:25 -0700 |
commit | a4a7fcb93df33c41d1d0faa51e3c322145e97b4e (patch) | |
tree | 506e0b4b9e4c2264066f7ff3e72af7cff1fd7b40 /phpBB/viewtopic.php | |
parent | 03594b64438464ba7f234ce38d3344561bc0a66b (diff) | |
download | forums-a4a7fcb93df33c41d1d0faa51e3c322145e97b4e.tar forums-a4a7fcb93df33c41d1d0faa51e3c322145e97b4e.tar.gz forums-a4a7fcb93df33c41d1d0faa51e3c322145e97b4e.tar.bz2 forums-a4a7fcb93df33c41d1d0faa51e3c322145e97b4e.tar.xz forums-a4a7fcb93df33c41d1d0faa51e3c322145e97b4e.zip |
[ticket/12477] Fix logic to prevent admin-deactivated users from getting PM's.
PHPBB3-12477
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r-- | phpBB/viewtopic.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 0691355563..c46f30d038 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -1609,7 +1609,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) $user_cache[$poster_id]['user_type'] != USER_IGNORE && // They must not be deactivated by the administrator - ($user_cache[$poster_id]['user_type'] != USER_INACTIVE && $user_cache[$poster_id]['user_inactive_reason'] == INACTIVE_MANUAL) && + ($user_cache[$poster_id]['user_type'] != USER_INACTIVE || $user_cache[$poster_id]['user_inactive_reason'] != INACTIVE_MANUAL) && // They must be able to read PMs in_array($poster_id, $can_receive_pm_list) && |