-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.7-PL1
-
None
As per title.
Reason:
$sql = 'SELECT COUNT(module_id) as num_modules
|
FROM ' . MODULES_TABLE . "
|
WHERE module_class = '" . $db->sql_escape($module_data['class']) . "'
|
AND parent_id = {$parent_id}
|
AND left_id BETWEEN {$first_left_id} AND {$module_row['left_id']}
|
GROUP BY left_id
|
ORDER BY left_id";
|
The modules are grouped by left_id so num_modules is always one (hopefully), but the number of rows is the actual value we'd like to know. Removing the GROUP BY resolves the issue.
- blocks
-
PHPBB-9578 ACP Posting tab is missing "Post settings" module.
- Closed
- caused
-
PHPBB-9886 Database updater does not run on PostgreSQL because of an error in _add_module()
- Closed