mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
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
This commit is contained in:
parent
5776168e55
commit
01ef526ae1
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue