diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-09 17:41:42 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-09 17:41:42 +0100 |
commit | 67c9f4d064803b214f06fe28ff2d6416a317b601 (patch) | |
tree | 771e34979990591d995a45b9d2e47a038d9be2a8 /phpBB | |
parent | d4c078cc7853ae0c6772f0e155c27255f86f25da (diff) | |
parent | e3571fc6eb2b9e2ce5b314ebc89a60ca02280165 (diff) | |
download | forums-67c9f4d064803b214f06fe28ff2d6416a317b601.tar forums-67c9f4d064803b214f06fe28ff2d6416a317b601.tar.gz forums-67c9f4d064803b214f06fe28ff2d6416a317b601.tar.bz2 forums-67c9f4d064803b214f06fe28ff2d6416a317b601.tar.xz forums-67c9f4d064803b214f06fe28ff2d6416a317b601.zip |
Merge pull request #3268 from Elsensee/ticket/13470
[ticket/13470] Fix non-empty username array if no usernames are given
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/acp/acp_email.php | 2 |
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)); |