diff options
author | David M <davidmj@users.sourceforge.net> | 2007-04-09 19:44:25 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-04-09 19:44:25 +0000 |
commit | c411c05060fdd5e91340ee112e80c5857be4f303 (patch) | |
tree | 20e527222fc302a6cecbcb36e2c06c33154c645a /phpBB/includes | |
parent | a80c9cd33d782579fa257d660428d420bff2eaaf (diff) | |
download | forums-c411c05060fdd5e91340ee112e80c5857be4f303.tar forums-c411c05060fdd5e91340ee112e80c5857be4f303.tar.gz forums-c411c05060fdd5e91340ee112e80c5857be4f303.tar.bz2 forums-c411c05060fdd5e91340ee112e80c5857be4f303.tar.xz forums-c411c05060fdd5e91340ee112e80c5857be4f303.zip |
#9551
git-svn-id: file:///svn/phpbb/trunk@7318 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_forums.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index 3772b0a8e6..9330157ea0 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -1123,6 +1123,19 @@ class acp_forums $db->sql_query($sql); } } + else if ($row['forum_type'] == FORUM_CAT && $forum_data_sql['forum_type'] == FORUM_POST) + { + // Changing a category to a forum? Reset the data (you can't post directly in a cat, you must use a forum) + $forum_data_sql['forum_posts'] = 0; + $forum_data_sql['forum_topics'] = 0; + $forum_data_sql['forum_topics_real'] = 0; + $forum_data_sql['forum_last_post_id'] = 0; + $forum_data_sql['forum_last_post_subject'] = ''; + $forum_data_sql['forum_last_post_time'] = 0; + $forum_data_sql['forum_last_poster_id'] = 0; + $forum_data_sql['forum_last_poster_name'] = ''; + $forum_data_sql['forum_last_poster_colour'] = ''; + } if (sizeof($errors)) { |