diff --git a/phpBB/posting.php b/phpBB/posting.php index b8937a8ab3..948671e42c 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -801,7 +801,8 @@ else $msg_date = create_date($board_config['default_dateformat'], $postrow['post_time'], $board_config['board_timezone']); - $quote_username = ( !empty($post_info['post_username']) ) ? $post_info['post_username'] : $post_info['username']; + // Use trim to get rid of spaces placed there by MS-SQL 2000 + $quote_username = ( trim($post_info['post_username']) != '' ) ? $post_info['post_username'] : $post_info['username']; $message = '[quote="' . $quote_username . '"]' . $message . '[/quote]'; if ( !empty($orig_word) ) @@ -1117,4 +1118,4 @@ $template->pparse('body'); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -?> \ No newline at end of file +?>