1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 00:50:30 +01:00

[ticket/15090] Ensure send stats module exists before removing

PHPBB3-15090
This commit is contained in:
Marc Alexander 2017-04-15 12:06:03 +02:00
parent 24f9a41654
commit e7dfdbffb5
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -32,10 +32,9 @@ class add_help_phpbb extends \phpbb\db\migration\migration
return array(
array('config.add', array('help_send_statistics', true)),
array('config.add', array('help_send_statistics_time', 0)),
array('module.remove', array(
'acp',
false,
'ACP_SEND_STATISTICS',
array('if', array(
array('module.exists', array('acp', false, 'ACP_SEND_STATISTICS')),
array('module.remove', array('acp', false, 'ACP_SEND_STATISTICS')),
)),
array('module.add', array(
'acp',