aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2015-01-08 22:17:05 +0100
committerOliver Schramm <oliver.schramm97@gmail.com>2015-01-08 22:17:05 +0100
commite3571fc6eb2b9e2ce5b314ebc89a60ca02280165 (patch)
tree2239e621d89d167cb9ede0776eba1b0d3faacefb /phpBB
parent87578e90eb1ac78a46cc72e30e1b9a360da8402f (diff)
downloadforums-e3571fc6eb2b9e2ce5b314ebc89a60ca02280165.tar
forums-e3571fc6eb2b9e2ce5b314ebc89a60ca02280165.tar.gz
forums-e3571fc6eb2b9e2ce5b314ebc89a60ca02280165.tar.bz2
forums-e3571fc6eb2b9e2ce5b314ebc89a60ca02280165.tar.xz
forums-e3571fc6eb2b9e2ce5b314ebc89a60ca02280165.zip
[ticket/13470] Fix non-empty username array if no usernames are given
PHPBB3-13470
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_email.php b/phpBB/includes/acp/acp_email.php
index 4671a026eb..fcc2bd7641 100644
--- a/phpBB/includes/acp/acp_email.php
+++ b/phpBB/includes/acp/acp_email.php
@@ -40,7 +40,7 @@ class acp_email
$error = array();
$usernames = request_var('usernames', '', true);
- $usernames = explode("\n", $usernames);
+ $usernames = (!empty($usernames)) ? explode("\n", $usernames) : array();
$group_id = request_var('g', 0);
$subject = utf8_normalize_nfc(request_var('subject', '', true));
$message = utf8_normalize_nfc(request_var('message', '', true));