From: Andreas F. <ba...@ph...> - 2009-08-24 00:30:26
|
Author: bantu Date: Mon Aug 24 01:29:23 2009 New Revision: 10049 Log: Fix bug #50245 - Check for correct module name when installing the "Send statistics" module. Modified: branches/phpBB-3_0_0/phpBB/install/database_update.php Modified: branches/phpBB-3_0_0/phpBB/install/database_update.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/install/database_update.php (original) --- branches/phpBB-3_0_0/phpBB/install/database_update.php Mon Aug 24 01:29:23 2009 *************** *** 1324,1335 **** { $category_id = (int) $row['module_id']; ! // Check if we actually need to add the feed module or if it is already added. ;) $sql = 'SELECT * FROM ' . MODULES_TABLE . " WHERE module_class = 'acp' AND module_langname = 'ACP_SEND_STATISTICS' ! AND module_mode = 'questionnaire' AND module_auth = 'acl_a_server' AND parent_id = {$category_id}"; $result2 = $db->sql_query($sql); --- 1324,1335 ---- { $category_id = (int) $row['module_id']; ! // Check if we need to add the module or if it is already there. ;) $sql = 'SELECT * FROM ' . MODULES_TABLE . " WHERE module_class = 'acp' AND module_langname = 'ACP_SEND_STATISTICS' ! AND module_mode = 'send_statistics' AND module_auth = 'acl_a_server' AND parent_id = {$category_id}"; $result2 = $db->sql_query($sql); |