1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00

[ticket/13312] Use empty for usernames array

PHPBB3-13312
This commit is contained in:
Oliver Schramm 2014-11-26 23:10:02 +01:00
parent 41d0b5d3a2
commit a349db54d6

View File

@ -70,7 +70,7 @@ class acp_email
if (!sizeof($error)) if (!sizeof($error))
{ {
if ($usernames) if (!empty($usernames))
{ {
// If giving usernames the admin is able to email inactive users too... // If giving usernames the admin is able to email inactive users too...
$sql_ary = array( $sql_ary = array(
@ -261,7 +261,7 @@ class acp_email
if ($generate_log_entry) if ($generate_log_entry)
{ {
if ($usernames) if (!empty($usernames))
{ {
add_log('admin', 'LOG_MASS_EMAIL', implode(', ', utf8_normalize_nfc($usernames))); add_log('admin', 'LOG_MASS_EMAIL', implode(', ', utf8_normalize_nfc($usernames)));
} }