mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13312] Use empty for usernames array
PHPBB3-13312
This commit is contained in:
parent
41d0b5d3a2
commit
a349db54d6
1 changed files with 2 additions and 2 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue