mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@7318 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a80c9cd33d
commit
c411c05060
1 changed files with 13 additions and 0 deletions
|
@ -1123,6 +1123,19 @@ class acp_forums
|
||||||
$db->sql_query($sql);
|
$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))
|
if (sizeof($errors))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue