mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/16262] Fixing event's $current_row_number by renaming $i
PHPBB3-16262
This commit is contained in:
parent
faca59b3a6
commit
202478d108
1 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ function mcp_topic_view($id, $mode, $action)
|
||||||
);
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.mcp_topic_modify_post_data', compact($vars)));
|
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'];
|
$message = $row['post_text'];
|
||||||
$post_subject = ($row['post_subject'] != '') ? $row['post_subject'] : $topic_info['topic_title'];
|
$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
|
// Display topic icons for split topic
|
||||||
|
|
Loading…
Add table
Reference in a new issue