Closed kasimi closed 5 years ago
Hi @AlexSheer,
could you take a look, please?
* line 1054: `$acp_tools = new acp_modules();` should be moved outsite of the if-bloc
For what reason?
* line 847: `$reason_id` is undefined
Probably need so WHERE reason_id = ' . (int) $row['reason_id'];
For what reason?
If the class acp_modules
is already loaded $acp_tools
is not created. When trying to delete a module it will throw an error because $acp_tools
is undefined. To be more precise, $acp_tools
should be created after the if
block.
Probably need so
WHERE reason_id = ' . (int) $row['reason_id'];
Yes, like on this line: https://github.com/AlexSheer/phpBB3.2-STK/blob/ff1971f6282f4b13dab50fe5309c4dfed105e84b/includes/database_cleaner/database_cleaner_controller.php#L829
In
includes/database_cleaner/database_cleaner_controller.php
:$reason_id
is undefined$acp_tools = new acp_modules();
should be moved outsite of the if-block