From a349db54d64557d3ae390791813b0e310ab52ad7 Mon Sep 17 00:00:00 2001 From: Oliver Schramm Date: Wed, 26 Nov 2014 23:10:02 +0100 Subject: [ticket/13312] Use empty for usernames array PHPBB3-13312 --- phpBB/includes/acp/acp_email.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/acp/acp_email.php') diff --git a/phpBB/includes/acp/acp_email.php b/phpBB/includes/acp/acp_email.php index 9e63d03550..4671a026eb 100644 --- a/phpBB/includes/acp/acp_email.php +++ b/phpBB/includes/acp/acp_email.php @@ -70,7 +70,7 @@ class acp_email if (!sizeof($error)) { - if ($usernames) + if (!empty($usernames)) { // If giving usernames the admin is able to email inactive users too... $sql_ary = array( @@ -261,7 +261,7 @@ class acp_email if ($generate_log_entry) { - if ($usernames) + if (!empty($usernames)) { add_log('admin', 'LOG_MASS_EMAIL', implode(', ', utf8_normalize_nfc($usernames))); } -- cgit v1.2.1