From ea5336044bc718b4989bad92c8e9a72e889cb4d5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 3 Jul 2019 09:19:57 +0200 Subject: [install.php] tableHasIndex -> tableGetIndex --- install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install.php') diff --git a/install.php b/install.php index 47084528..5f5fe369 100644 --- a/install.php +++ b/install.php @@ -60,7 +60,7 @@ function tableHasColumn($table, $column) return false; } -function tableHasIndex($table, $index) +function tableGetIndex($table, $index) { $table = preg_replace('/\W/', '', $table); if (!is_array($index)) { @@ -79,9 +79,9 @@ function tableHasIndex($table, $index) } } } - foreach ($matches as $m) { + foreach ($matches as $key => $m) { if ($m === count($index)) - return true; + return $key; } return false; } -- cgit v1.2.3-55-g7522