diff options
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r-- | phpBB/includes/acp/acp_forums.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index 9b1388a13d..978587a650 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -403,10 +403,8 @@ class acp_forums } // Make sure no direct child forums are able to be selected as parents. - $childs = get_forum_branch($forum_id, 'children'); - $exclude_forums = array(); - foreach ($childs as $row) + foreach (get_forum_branch($forum_id, 'children') as $row) { $exclude_forums[] = $row['forum_id']; } |