]> git.joonet.de Git - adminer.git/commitdiff
Fix import without primary key (fix #1017, regression from 5.1.1)
authorJakub Vrana <jakub@vrana.cz>
Thu, 10 Apr 2025 15:58:15 +0000 (17:58 +0200)
committerJakub Vrana <jakub@vrana.cz>
Thu, 10 Apr 2025 15:58:22 +0000 (17:58 +0200)
CHANGELOG.md
adminer/select.inc.php

index d9ad0f8c34017661b203edf1092d97dcb837c432..6d645e7fed348753c26038e2b8010bc5809a2852 100644 (file)
@@ -1,5 +1,6 @@
 ## Adminer dev
 - Fix search anywhere (bug #1004, regression from 5.1.1)
+- Fix import without primary key (bug #1017, regression from 5.1.1)
 
 ## Adminer 5.2.0 (released 2025-04-08)
 - Autocomplete SQL commands
index 840776613bb89f2bdb4de95a7d93a4c40f2cae56..46f53605e7ebd4bda467861905b3dad15cf12c88 100644 (file)
@@ -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"]);