1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 09:16:55 +02:00

Merge pull request #5783 from brunoais/ticket/16262

Ticket/16262 compact() calls with undefined variables causing error page
This commit is contained in:
Marc Alexander
2019-12-30 08:37:08 +01:00
3 changed files with 8 additions and 2 deletions

View File

@@ -242,7 +242,7 @@ function mcp_topic_view($id, $mode, $action)
);
extract($phpbb_dispatcher->trigger_event('core.mcp_topic_modify_post_data', compact($vars)));
foreach ($rowset as $i => $row)
foreach ($rowset as $current_row_number => $row)
{
$message = $row['post_text'];
$post_subject = ($row['post_subject'] != '') ? $row['post_subject'] : $topic_info['topic_title'];
@@ -336,7 +336,7 @@ function mcp_topic_view($id, $mode, $action)
}
}
unset($rowset[$i]);
unset($rowset[$current_row_number]);
}
// Display topic icons for split topic