]> git.joonet.de Git - adminer.git/commitdiff
Fix inline edit of long uncovert_field() fields
authorJakub Vrana <jakub@vrana.cz>
Thu, 9 Jan 2014 06:39:49 +0000 (22:39 -0800)
committerJakub Vrana <jakub@vrana.cz>
Thu, 9 Jan 2014 06:39:49 +0000 (22:39 -0800)
adminer/select.inc.php

index c52289bc67834d7cf4583e1b445c103b816a8edf..1b552d87e022fcc559966e20ea3802cc2a3b1ce0 100644 (file)
@@ -39,7 +39,7 @@ if ($_GET["val"] && is_ajax()) {
        header("Content-Type: text/plain; charset=utf-8");
        foreach ($_GET["val"] as $unique_idf => $row) {
                $as = convert_field($fields[key($row)]);
-               echo $connection->result("SELECT" . limit($as ? $as : idf_escape(key($row)) . " FROM " . table($TABLE), " WHERE " . where_check($unique_idf, $fields) . ($where ? " AND " . implode(" AND ", $where) : "") . ($order ? " ORDER BY " . implode(", ", $order) : ""), 1));
+               echo $connection->result("SELECT" . limit(($as ? $as : idf_escape(key($row))) . " FROM " . table($TABLE), " WHERE " . where_check($unique_idf, $fields) . ($where ? " AND " . implode(" AND ", $where) : "") . ($order ? " ORDER BY " . implode(", ", $order) : ""), 1));
        }
        exit;
 }