mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fix skipping messages if using next/prev PM in history links. (Bug #22205)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9441 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0319733ea8
commit
e35b5c26e6
3 changed files with 11 additions and 3 deletions
|
@ -137,6 +137,7 @@
|
||||||
<li>[Fix] Enforce correct case for template variables</li>
|
<li>[Fix] Enforce correct case for template variables</li>
|
||||||
<li>[Fix] Set topic_last_view_time on post/reply/edit to circumvent race conditions in auto prune and false removal of topics for manual forum prune (Bug #18055, #43515)</li>
|
<li>[Fix] Set topic_last_view_time on post/reply/edit to circumvent race conditions in auto prune and false removal of topics for manual forum prune (Bug #18055, #43515)</li>
|
||||||
<li>[Fix] Correctly split long subject lines according to the used RFC. This fixes extra spaces within long subjects. (Bug #43715)</li>
|
<li>[Fix] Correctly split long subject lines according to the used RFC. This fixes extra spaces within long subjects. (Bug #43715)</li>
|
||||||
|
<li>[Fix] Fix skipping messages if using next/prev PM in history links. (Bug #22205)</li>
|
||||||
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
<li>[Change] Default difference view is now 'inline' instead of 'side by side'</li>
|
||||||
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
<li>[Change] Added new option for merging differences to conflicting files in automatic updater</li>
|
||||||
<li>[Change] Add link to user profile in the MCP for user notes and warn user.</li>
|
<li>[Change] Add link to user profile in the MCP for user notes and warn user.</li>
|
||||||
|
|
|
@ -664,6 +664,8 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
|
||||||
{
|
{
|
||||||
delete_posts($where_type, $_where_ids, $auto_sync, $posted_sync, $post_count_sync, $call_delete_topics);
|
delete_posts($where_type, $_where_ids, $auto_sync, $posted_sync, $post_count_sync, $call_delete_topics);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
$where_clause = $db->sql_in_set($where_type, $where_ids);
|
$where_clause = $db->sql_in_set($where_type, $where_ids);
|
||||||
|
|
|
@ -1763,8 +1763,14 @@ function message_history($msg_id, $user_id, $message_row, $folder, $in_post_mode
|
||||||
$url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm');
|
$url = append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm');
|
||||||
$next_history_pm = $previous_history_pm = $prev_id = 0;
|
$next_history_pm = $previous_history_pm = $prev_id = 0;
|
||||||
|
|
||||||
foreach ($rowset as $id => $row)
|
// Re-order rowset to be able to get the next/prev message rows...
|
||||||
|
$rowset = array_values($rowset);
|
||||||
|
|
||||||
|
for ($i = 0, $size = sizeof($rowset); $i < $size; $i++)
|
||||||
{
|
{
|
||||||
|
$row = &$rowset[$i];
|
||||||
|
$id = (int) $row['msg_id'];
|
||||||
|
|
||||||
$author_id = $row['author_id'];
|
$author_id = $row['author_id'];
|
||||||
$folder_id = (int) $row['folder_id'];
|
$folder_id = (int) $row['folder_id'];
|
||||||
|
|
||||||
|
@ -1795,8 +1801,7 @@ function message_history($msg_id, $user_id, $message_row, $folder, $in_post_mode
|
||||||
|
|
||||||
if ($id == $msg_id)
|
if ($id == $msg_id)
|
||||||
{
|
{
|
||||||
$next_history_pm = next($rowset);
|
$next_history_pm = (isset($rowset[$i + 1])) ? (int) $rowset[$i + 1]['msg_id'] : 0;
|
||||||
$next_history_pm = (sizeof($next_history_pm)) ? (int) $next_history_pm['msg_id'] : 0;
|
|
||||||
$previous_history_pm = $prev_id;
|
$previous_history_pm = $prev_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue