diff options
author | Simon Rettberg | 2019-07-03 09:19:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-03 09:19:57 +0200 |
commit | ea5336044bc718b4989bad92c8e9a72e889cb4d5 (patch) | |
tree | 2942f0ff1b37352ce932f904755a5b53a45ba5f8 /install.php | |
parent | [locationinfo] fix bug 'open for' without times (diff) | |
download | slx-admin-ea5336044bc718b4989bad92c8e9a72e889cb4d5.tar.gz slx-admin-ea5336044bc718b4989bad92c8e9a72e889cb4d5.tar.xz slx-admin-ea5336044bc718b4989bad92c8e9a72e889cb4d5.zip |
[install.php] tableHasIndex -> tableGetIndex
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |