mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +02:00
Fix bug #50245 - Check for correct module name when installing the "Send statistics" module.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10049 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1324,12 +1324,12 @@ function change_database_data(&$no_updates, $version)
|
|||||||
{
|
{
|
||||||
$category_id = (int) $row['module_id'];
|
$category_id = (int) $row['module_id'];
|
||||||
|
|
||||||
// Check if we actually need to add the feed module or if it is already added. ;)
|
// Check if we need to add the module or if it is already there. ;)
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT *
|
||||||
FROM ' . MODULES_TABLE . "
|
FROM ' . MODULES_TABLE . "
|
||||||
WHERE module_class = 'acp'
|
WHERE module_class = 'acp'
|
||||||
AND module_langname = 'ACP_SEND_STATISTICS'
|
AND module_langname = 'ACP_SEND_STATISTICS'
|
||||||
AND module_mode = 'questionnaire'
|
AND module_mode = 'send_statistics'
|
||||||
AND module_auth = 'acl_a_server'
|
AND module_auth = 'acl_a_server'
|
||||||
AND parent_id = {$category_id}";
|
AND parent_id = {$category_id}";
|
||||||
$result2 = $db->sql_query($sql);
|
$result2 = $db->sql_query($sql);
|
||||||
|
Reference in New Issue
Block a user