[ticket/9886] Update fails on PostgreSQL because of an error in _add_module

PHPBB3-9886
This commit is contained in:
Joas Schilling 2010-11-08 23:03:20 +01:00
parent e71911a8d2
commit d722eeb64b

View file

@ -685,8 +685,7 @@ function _add_modules($modules_to_install)
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']}
ORDER BY left_id";
AND left_id BETWEEN {$first_left_id} AND {$module_row['left_id']}";
$result = $db->sql_query($sql);
$steps = (int) $db->sql_fetchfield('num_modules');
$db->sql_freeresult($result);