]> git.joonet.de Git - adminer.git/commitdiff
Typo
authorJakub Vrana <jakub@vrana.cz>
Wed, 27 Jul 2011 07:08:53 +0000 (09:08 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 27 Jul 2011 07:08:53 +0000 (09:08 +0200)
adminer/include/functions.inc.php

index 8d578d1f504752ac419ee9389830de3f64bae891..fec5ce40992eebb21980947013ba29d3dee6ab4f 100644 (file)
@@ -695,7 +695,7 @@ function input($field, $value, $function) {
                        }
                        $first++;
                }
-               $onchange = ($first ? " onchange=\"var f = this.form['function[" . h(js_escape($name)) . "]']; if ($first > f.selectedIndex) f.selectedIndex = $first;\"" : "");
+               $onchange = ($first ? " onchange=\"var f = this.form['function[" . h(js_escape(bracket_escape($field["field"]))) . "]']; if ($first > f.selectedIndex) f.selectedIndex = $first;\"" : "");
                $attrs .= $onchange;
                echo (count($functions) > 1 ? html_select("function[$name]", $functions, !isset($function) || in_array($function, $functions) || isset($functions[$function]) ? $function : "", "functionChange(this);") : nbsp(reset($functions))) . '<td>';
                $input = $adminer->editInput($_GET["edit"], $field, $attrs, $value); // usage in call is without a table