diff options
author | Chris Smith <toonarmy@phpbb.com> | 2008-10-18 18:44:41 +0000 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2008-10-18 18:44:41 +0000 |
commit | faeb515f75a0376fdc8454ce51ecbfb309556c37 (patch) | |
tree | 430d5090455f34c373c28a695b78fcc92503be37 /phpBB/includes/mcp | |
parent | 1f84d45740c30e49e9576c539b0c7fa8a34e9b67 (diff) | |
download | forums-faeb515f75a0376fdc8454ce51ecbfb309556c37.tar forums-faeb515f75a0376fdc8454ce51ecbfb309556c37.tar.gz forums-faeb515f75a0376fdc8454ce51ecbfb309556c37.tar.bz2 forums-faeb515f75a0376fdc8454ce51ecbfb309556c37.tar.xz forums-faeb515f75a0376fdc8454ce51ecbfb309556c37.zip |
Fix an issue in r9015 re-index the intersected array
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9029 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_front.php | 6 | ||||
-rw-r--r-- | phpBB/includes/mcp/mcp_logs.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/mcp/mcp_front.php b/phpBB/includes/mcp/mcp_front.php index c63f18d562..05c1b796ac 100644 --- a/phpBB/includes/mcp/mcp_front.php +++ b/phpBB/includes/mcp/mcp_front.php @@ -27,7 +27,7 @@ function mcp_front_view($id, $mode, $action) // Latest 5 unapproved if ($module->loaded('queue')) { - $forum_list = array_intersect(get_forum_list('f_read'), get_forum_list('m_approve')); + $forum_list = array_values(array_intersect(get_forum_list('f_read'), get_forum_list('m_approve'))); $post_list = array(); $forum_names = array(); @@ -143,7 +143,7 @@ function mcp_front_view($id, $mode, $action) // Latest 5 reported if ($module->loaded('reports')) { - $forum_list = array_intersect(get_forum_list('f_read'), get_forum_list('m_report')); + $forum_list = array_values(array_intersect(get_forum_list('f_read'), get_forum_list('m_report'))); $template->assign_var('S_SHOW_REPORTS', (!empty($forum_list)) ? true : false); @@ -246,7 +246,7 @@ function mcp_front_view($id, $mode, $action) // Latest 5 logs if ($module->loaded('logs')) { - $forum_list = array_intersect(get_forum_list('f_read'), get_forum_list('m_')); + $forum_list = array_values(array_intersect(get_forum_list('f_read'), get_forum_list('m_'))); if (!empty($forum_list)) { diff --git a/phpBB/includes/mcp/mcp_logs.php b/phpBB/includes/mcp/mcp_logs.php index c1438d4a2d..a6b1935c88 100644 --- a/phpBB/includes/mcp/mcp_logs.php +++ b/phpBB/includes/mcp/mcp_logs.php @@ -63,7 +63,7 @@ class mcp_logs $this->tpl_name = 'mcp_logs'; $this->page_title = 'MCP_LOGS'; - $forum_list = array_intersect(get_forum_list('f_read'), get_forum_list('m_')); + $forum_list = array_values(array_intersect(get_forum_list('f_read'), get_forum_list('m_'))); $forum_list[] = 0; $forum_id = $topic_id = 0; |