diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-22 17:53:27 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-11-22 17:53:27 +0000 |
commit | 7d1e8ed70e07730f740166ed8d70be4a490c4827 (patch) | |
tree | 47d4a92758873822d89c47270f409767fe0469fd /phpBB/includes/ucp/ucp_pm_compose.php | |
parent | cf2a0852cabc000aa0ee5bdaa9b52173780838a1 (diff) | |
download | forums-7d1e8ed70e07730f740166ed8d70be4a490c4827.tar forums-7d1e8ed70e07730f740166ed8d70be4a490c4827.tar.gz forums-7d1e8ed70e07730f740166ed8d70be4a490c4827.tar.bz2 forums-7d1e8ed70e07730f740166ed8d70be4a490c4827.tar.xz forums-7d1e8ed70e07730f740166ed8d70be4a490c4827.zip |
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
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 060baaefa0..ba06315363 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -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']])) |