aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2007-06-18 15:12:14 +0000
committerHenry Sudhof <kellanved@phpbb.com>2007-06-18 15:12:14 +0000
commitc57f28e273807e8c4ef1251f72524604d259b5eb (patch)
tree9d48721a2e63cf0855faf1e08e1e3ac9dcd76e6c /phpBB/posting.php
parente58c913488029ceb963766e3953448822c2daf0f (diff)
downloadforums-c57f28e273807e8c4ef1251f72524604d259b5eb.tar
forums-c57f28e273807e8c4ef1251f72524604d259b5eb.tar.gz
forums-c57f28e273807e8c4ef1251f72524604d259b5eb.tar.bz2
forums-c57f28e273807e8c4ef1251f72524604d259b5eb.tar.xz
forums-c57f28e273807e8c4ef1251f72524604d259b5eb.zip
Fixing a few minor bugs; changing one language variable.
#12123 #12483 #12489 #12513 git-svn-id: file:///svn/phpbb/trunk@7777 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index d5dcc0e14a..675b390672 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -321,7 +321,14 @@ if ($mode == 'bump')
// Determine some vars
-$post_data['quote_username'] = (!empty($post_data['username'])) ? $post_data['username'] : ((!empty($post_data['post_username'])) ? $post_data['post_username'] : '');
+if (isset($post_data['poster_id']) && $post_data['poster_id'] == ANONYMOUS)
+{
+ $post_data['quote_username'] = (!empty($post_data['post_username'])) ? $post_data['post_username'] : $user->lang['GUEST'];
+}
+else
+{
+ $post_data['quote_username'] = isset($post_data['username']) ? $post_data['username'] : '';
+}
$post_data['post_edit_locked'] = (isset($post_data['post_edit_locked'])) ? (int) $post_data['post_edit_locked'] : 0;
$post_data['post_subject'] = (in_array($mode, array('quote', 'edit'))) ? $post_data['post_subject'] : ((isset($post_data['topic_title'])) ? $post_data['topic_title'] : '');
$post_data['topic_time_limit'] = (isset($post_data['topic_time_limit'])) ? (($post_data['topic_time_limit']) ? (int) $post_data['topic_time_limit'] / 86400 : (int) $post_data['topic_time_limit']) : 0;