]> git.joonet.de Git - adminer.git/commitdiff
Functions translation
authorJakub Vrana <jakub@vrana.cz>
Tue, 3 Aug 2010 12:51:10 +0000 (14:51 +0200)
committerJakub Vrana <jakub@vrana.cz>
Tue, 3 Aug 2010 12:51:10 +0000 (14:51 +0200)
adminer/include/functions.inc.php

index ed847f134099a7ea0f3d5be77a69a35cc4a2d569..944d5e4e4b8b56b6b1b3f2f28b67ba8a66164334 100644 (file)
@@ -561,7 +561,7 @@ function input($field, $value, $function) {
                }
                $onchange = ($first ? " onchange=\"var f = this.form['function[" . addcslashes($name, "\r\n'\\") . "]']; if ($first > f.selectedIndex) f.selectedIndex = $first;\"" : "");
                $attrs = " name='fields[$name]'$onchange";
-               echo (count($functions) > 1 ? html_select("function[$name]", $functions, !isset($function) || in_array($function, $functions) ? $function : "") : nbsp(reset($functions))) . '<td>';
+               echo (count($functions) > 1 ? html_select("function[$name]", $functions, !isset($function) || in_array($function, $functions) || isset($functions[$function]) ? $function : "") : nbsp(reset($functions))) . '<td>';
                $input = $adminer->editInput($_GET["edit"], $field, $attrs, $value); // usage in call is without a table
                if ($input != "") {
                        echo $input;