mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
Fix import without primary key (fix #1017, regression from 5.1.1)
This commit is contained in:
@@ -54,7 +54,7 @@ if ($_GET["val"] && is_ajax()) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$primary = $unselected = null;
|
||||
$primary = $unselected = array();
|
||||
foreach ($indexes as $index) {
|
||||
if ($index["type"] == "PRIMARY") {
|
||||
$primary = array_flip($index["columns"]);
|
||||
|
Reference in New Issue
Block a user