Skip to content

Commit

Permalink
[ticket/15651] Remove unnecessary condition
Browse files Browse the repository at this point in the history
module.remove internally check if the module exists

PHPBB3-15651
  • Loading branch information
senky committed Jun 18, 2018
1 parent 02cbb86 commit 6fdb748
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions phpBB/phpbb/db/migration/data/v320/add_help_phpbb.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ public function update_data()
return array(
array('config.add', array('help_send_statistics', true)),
array('config.add', array('help_send_statistics_time', 0)),
array('if', array(
array('module.exists', array('acp', false, 'ACP_SEND_STATISTICS')),
array('module.remove', array('acp', false, 'ACP_SEND_STATISTICS')),
)),
array('module.remove', array('acp', false, 'ACP_SEND_STATISTICS')),
array('module.add', array(
'acp',
'ACP_SERVER_CONFIGURATION',
Expand Down

0 comments on commit 6fdb748

Please sign in to comment.