From 37a1874782629286cb3c7750b2dc1ffa8427e73c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sat, 9 Aug 2014 14:02:24 +0200 Subject: [PATCH] [ticket/12710] Fix foreach generation PHPBB3-12710 --- phpBB/phpbb/db/tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 000f0681cb..69c6f17416 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -2370,7 +2370,7 @@ class tools if (!empty($indexes) || !empty($unique_indexes)) { $drop_indexes = array_merge(array_keys($indexes), array_keys($unique_indexes)); - foreach ($drop_indexes as $index_name => $index_data) + foreach ($drop_indexes as $index_name) { $result = $this->sql_index_drop($table_name, $this->strip_table_name_from_index_name($table_name, $index_name)); $statements = array_merge($statements, $result);