]> git.joonet.de Git - adminer.git/commitdiff
Comment
authorJakub Vrana <jakub@vrana.cz>
Mon, 19 Feb 2018 22:04:27 +0000 (23:04 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 19 Feb 2018 22:04:27 +0000 (23:04 +0100)
editor/script.inc.php

index db57165cff524092223a54a537a26599efd5b4b7..fd06e26c88e8726376b6b4d4089dca765c21f1f3 100644 (file)
@@ -2,7 +2,7 @@
 if ($_GET["script"] == "kill") {
        $connection->query("KILL " . number($_POST["kill"]));
 
-} elseif (list($table, $id, $name) = $adminer->_foreignColumn(column_foreign_keys($_GET["source"]), $_GET["field"])) {
+} elseif (list($table, $id, $name) = $adminer->_foreignColumn(column_foreign_keys($_GET["source"]), $_GET["field"])) { // complete
        $limit = 11;
        $result = $connection->query("SELECT $id, $name FROM " . table($table) . " WHERE " . (preg_match('~^[0-9]+$~', $_GET["value"]) ? "$id = $_GET[value] OR " : "") . "$name LIKE " . q("$_GET[value]%") . " ORDER BY 2 LIMIT $limit");
        for ($i=1; ($row = $result->fetch_row()) && $i < $limit; $i++) {