diff options
author | brunoais <brunoaiss@gmail.com> | 2019-12-26 18:17:39 +0000 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2019-12-26 18:17:39 +0000 |
commit | 202478d1088def6e73fd0a9abc0bf951b7b13132 (patch) | |
tree | a0124659ffeb43ce1e1b85c0c1edbef3b207190a /phpBB | |
parent | faca59b3a6ded459bf67e66cf1088380e9850048 (diff) | |
download | forums-202478d1088def6e73fd0a9abc0bf951b7b13132.tar forums-202478d1088def6e73fd0a9abc0bf951b7b13132.tar.gz forums-202478d1088def6e73fd0a9abc0bf951b7b13132.tar.bz2 forums-202478d1088def6e73fd0a9abc0bf951b7b13132.tar.xz forums-202478d1088def6e73fd0a9abc0bf951b7b13132.zip |
[ticket/16262] Fixing event's $current_row_number by renaming $i
PHPBB3-16262
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 83ad56f3e4..77db5f3ed0 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -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 |