mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/php-events] Fix acp_manage_forums_update_data_before and is_new_forum
PHPBB3-9550
This commit is contained in:
parent
b32d5a3edf
commit
90ed6e734d
1 changed files with 2 additions and 5 deletions
|
@ -1036,17 +1036,14 @@ class acp_forums
|
||||||
}
|
}
|
||||||
unset($forum_data_sql['forum_password_unset']);
|
unset($forum_data_sql['forum_password_unset']);
|
||||||
|
|
||||||
$is_new_forum = !isset($forum_data_sql['forum_id']);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove invalid values from forum_data_sql that should not be updated
|
* Remove invalid values from forum_data_sql that should not be updated
|
||||||
*
|
*
|
||||||
* @event core.acp_manage_forums_update_data_before
|
* @event core.acp_manage_forums_update_data_before
|
||||||
* @var array forum_data Array with forum data
|
* @var array forum_data Array with forum data
|
||||||
* @var array forum_data_sql Array with data we are going to update
|
* @var array forum_data_sql Array with data we are going to update
|
||||||
* @var bool is_new_forum Do we create a forum or update one
|
* If forum_data_sql[forum_id] is set, we update
|
||||||
* If you want to overwrite this value,
|
* that forum, otherwise a new one is created.
|
||||||
* ensure to set forum_data_sql[forum_id]
|
|
||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
$vars = array('forum_data', 'forum_data_sql');
|
$vars = array('forum_data', 'forum_data_sql');
|
||||||
|
|
Loading…
Add table
Reference in a new issue