1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Fix header list build for replying oldest PM in PM history (Bug #37275)

git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9072 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2008-11-22 17:53:27 +00:00
parent cf2a0852ca
commit 7d1e8ed70e
2 changed files with 4 additions and 1 deletions

View File

@@ -424,7 +424,9 @@ function compose_pm($id, $mode, $action)
{
// We try to include every previously listed member from the TO Header
$list = rebuild_header(array('to' => $post['to_address']));
$list = $list['u'];
// Can be an empty array too ;)
$list = (!empty($list['u'])) ? $list['u'] : array();
$list[$post['author_id']] = 'to';
if (isset($list[$user->data['user_id']]))