aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-12-30 08:37:08 +0100
committerMarc Alexander <admin@m-a-styles.de>2019-12-30 08:37:08 +0100
commitb1c5ad6a6109acfdb82c3705e67d9e4241c088ff (patch)
tree1d3424eb56994602a22edd6311eff4a5e311c8da /phpBB/includes
parent036871cd9535503f1f7456096e6368544bdd8fc5 (diff)
parent202478d1088def6e73fd0a9abc0bf951b7b13132 (diff)
downloadforums-b1c5ad6a6109acfdb82c3705e67d9e4241c088ff.tar
forums-b1c5ad6a6109acfdb82c3705e67d9e4241c088ff.tar.gz
forums-b1c5ad6a6109acfdb82c3705e67d9e4241c088ff.tar.bz2
forums-b1c5ad6a6109acfdb82c3705e67d9e4241c088ff.tar.xz
forums-b1c5ad6a6109acfdb82c3705e67d9e4241c088ff.zip
Merge pull request #5783 from brunoais/ticket/16262
Ticket/16262 compact() calls with undefined variables causing error page
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_topic.php4
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