mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
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
This commit is contained in:
parent
1f84d45740
commit
faeb515f75
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user