From 01ef526ae1dacbe4bae5b8e6ce808df2c859301d Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Thu, 28 Nov 2002 08:40:56 +0000 Subject: [PATCH] Fixed bug #1049, Can't quote properly on MS-SQL git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3140 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 +?>