1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Ignore lengths in adding new index

This commit is contained in:
Jakub Vrana
2013-07-06 23:42:37 -07:00
parent 7c109ba274
commit 22b0a85acf

View File

@@ -74,11 +74,7 @@ if ($_POST["add"]) {
}
}
$index = end($row["indexes"]);
if ($index["type"]
|| array_filter($index["columns"], 'strlen')
|| array_filter($index["lengths"], 'strlen')
|| array_filter($index["descs"])
) {
if ($index["type"] || array_filter($index["columns"], 'strlen')) {
$row["indexes"][] = array("columns" => array(1 => ""));
}
}