mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-04 13:35:13 +02: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
@ -1036,17 +1036,14 @@ class acp_forums
|
||||
}
|
||||
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
|
||||
*
|
||||
* @event core.acp_manage_forums_update_data_before
|
||||
* @var array forum_data Array with forum data
|
||||
* @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 you want to overwrite this value,
|
||||
* ensure to set forum_data_sql[forum_id]
|
||||
* If forum_data_sql[forum_id] is set, we update
|
||||
* that forum, otherwise a new one is created.
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('forum_data', 'forum_data_sql');
|
||||
|
Loading…
x
Reference in New Issue
Block a user