aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2012-03-12 01:47:28 +0800
committerrxu <rxu@mail.ru>2012-03-12 01:47:28 +0800
commitda395edbca3e25d1758a6b8c26d14c2e48f112d9 (patch)
treea9e3aaccffaf53357751a39058fedb2116a51698 /phpBB/includes/functions_privmsgs.php
parent321d0d9b56011e049b245b6d54975b6c67b3b15b (diff)
downloadforums-da395edbca3e25d1758a6b8c26d14c2e48f112d9.tar
forums-da395edbca3e25d1758a6b8c26d14c2e48f112d9.tar.gz
forums-da395edbca3e25d1758a6b8c26d14c2e48f112d9.tar.bz2
forums-da395edbca3e25d1758a6b8c26d14c2e48f112d9.tar.xz
forums-da395edbca3e25d1758a6b8c26d14c2e48f112d9.zip
[ticket/10684] Remove intval mapping for array keys
PHP manual for arrays http://php.net/manual/en/language.types.array.php states that the following key cast will occur: Strings containing valid integers will be cast to the integer type. E.g. the key "8" will actually be stored under 8. Thus, no intval mapping for numeric array keys is needed. PHPBB3-10684
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index 8303fc3754..4ea8f74153 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1635,7 +1635,7 @@ function pm_notification($mode, $author, $recipients, $subject, $message, $msg_i
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
}
$banned_users = phpbb_get_banned_users_ids(array_keys($recipients));
- $recipients = array_diff(array_map('intval', array_keys($recipients)), $banned_users);
+ $recipients = array_diff(array_keys($recipients), $banned_users);
if (!sizeof($recipients))
{