aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-09-02 01:11:40 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-09-02 01:11:40 +0200
commit42b9c3c479a28ba74c214676a17e7e783150e227 (patch)
tree813ce3b9c7eeb3a0f48229470858486f3982960e /phpBB/includes/functions_posting.php
parent2ce83fce1eb3031b71a54a555b8766f35d8b6ac7 (diff)
downloadforums-42b9c3c479a28ba74c214676a17e7e783150e227.tar
forums-42b9c3c479a28ba74c214676a17e7e783150e227.tar.gz
forums-42b9c3c479a28ba74c214676a17e7e783150e227.tar.bz2
forums-42b9c3c479a28ba74c214676a17e7e783150e227.tar.xz
forums-42b9c3c479a28ba74c214676a17e7e783150e227.zip
[ticket/11769] Allow '0' as username
PHPBB3-11769
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 32206df868..11a5067ef9 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2607,7 +2607,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
// If a username was supplied or the poster is a guest, we will use the supplied username.
// Doing it this way we can use "...post by guest-username..." in notifications when
// "guest-username" is supplied or ommit the username if it is not.
- $username = ($username || !$user->data['is_registered']) ? $username : $user->data['username'];
+ $username = ($username !== '' || !$user->data['is_registered']) ? $username : $user->data['username'];
user_notification($mode, $subject, $data['topic_title'], $data['forum_name'], $data['forum_id'], $data['topic_id'], $data['post_id'], $username);
}