aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-09-02 11:29:50 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-09-02 11:29:50 +0200
commitcd9711b7c9201fa58ce56e56f85aa2c196bcbdae (patch)
tree309522ce90a89c6551a56082023df5017094e98b /phpBB/posting.php
parent42b9c3c479a28ba74c214676a17e7e783150e227 (diff)
downloadforums-cd9711b7c9201fa58ce56e56f85aa2c196bcbdae.tar
forums-cd9711b7c9201fa58ce56e56f85aa2c196bcbdae.tar.gz
forums-cd9711b7c9201fa58ce56e56f85aa2c196bcbdae.tar.bz2
forums-cd9711b7c9201fa58ce56e56f85aa2c196bcbdae.tar.xz
forums-cd9711b7c9201fa58ce56e56f85aa2c196bcbdae.zip
[ticket/11769] Allow using 0 as poster name
PHPBB3-11769
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 7ab4773df2..61df10b125 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1135,7 +1135,7 @@ if ($submit || $preview || $refresh)
// the username was supplied; otherwise post_data might hold the data of the post that is
// being quoted (which could result in the username being returned being that of the quoted
// post's poster, not the poster of the current post). See: PHPBB3-11769 for more information.
- $post_author_name = ((!$user->data['is_registered'] || $mode == 'edit') && $post_data['username']) ? $post_data['username'] : '';
+ $post_author_name = ((!$user->data['is_registered'] || $mode == 'edit') && $post_data['username'] !== '') ? $post_data['username'] : '';
// The last parameter tells submit_post if search indexer has to be run
$redirect_url = submit_post($mode, $post_data['post_subject'], $post_author_name, $post_data['topic_type'], $poll, $data, $update_message, ($update_message || $update_subject) ? true : false);