diff options
author | Matt Friedman <maf675@gmail.com> | 2014-03-13 16:20:38 -0700 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2014-03-13 16:20:38 -0700 |
commit | c48fe65dfdb507973b58e8c0750664fefe61b095 (patch) | |
tree | ad77b092006de0143ab76e08dd44f29111ca26b9 | |
parent | 5df3e0a4ec4a30434f7b727149d1e60c3223cb42 (diff) | |
download | forums-c48fe65dfdb507973b58e8c0750664fefe61b095.tar forums-c48fe65dfdb507973b58e8c0750664fefe61b095.tar.gz forums-c48fe65dfdb507973b58e8c0750664fefe61b095.tar.bz2 forums-c48fe65dfdb507973b58e8c0750664fefe61b095.tar.xz forums-c48fe65dfdb507973b58e8c0750664fefe61b095.zip |
[ticket/12263] Remove invalid SQL query and unused variables
PHPBB3-12263
-rw-r--r-- | phpBB/phpbb/db/migration/tool/module.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php index 3baddd857a..b2c14cfddb 100644 --- a/phpBB/phpbb/db/migration/tool/module.php +++ b/phpBB/phpbb/db/migration/tool/module.php @@ -405,22 +405,10 @@ class module implements \phpbb\db\migration\tool\tool_interface $module_ids[] = (int) $module_id; } $this->db->sql_freeresult($result); - - $module_name = $module; } else { - $module = (int) $module; - $sql = 'SELECT module_langname - FROM ' . $this->modules_table . " - WHERE module_id = $module - AND module_class = '" . $this->db->sql_escape($class) . "' - $parent_sql"; - $result = $this->db->sql_query($sql); - $module_name = $this->db->sql_fetchfield('module_id'); - $this->db->sql_freeresult($result); - - $module_ids[] = $module; + $module_ids[] = (int) $module; } if (!class_exists('acp_modules')) |