From: Jakub Vrana Date: Thu, 9 Jan 2014 06:39:49 +0000 (-0800) Subject: Fix inline edit of long uncovert_field() fields X-Git-Tag: v4.0.1~27 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=c8305c4cf534e9ab9d46de6fb2fe65c321830db2;p=adminer.git Fix inline edit of long uncovert_field() fields --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c52289bc..1b552d87 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -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; }