diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 49dff998e7..7d66ddb63c 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -3661,11 +3661,8 @@ function PMA_getFunctionsForField($field, $insert_mode) global $cfg, $analyzed_sql, $data; $selected = ''; - $dropdown = array(); $default_function = ''; - $dropdown = $GLOBALS['PMA_Types']->getFunctions($field['True_Type']); - // Can we get field class based values? $current_class = $GLOBALS['PMA_Types']->getTypeClass($field['True_Type']); if (! empty($current_class)) { @@ -3707,13 +3704,14 @@ function PMA_getFunctionsForField($field, $insert_mode) $retval = '' . "\n"; // loop on the dropdown array and print all available options for that // field. - foreach ($dropdown as $each_dropdown) { + $functions = $GLOBALS['PMA_Types']->getFunctions($field['True_Type']); + foreach ($functions as $function) { $retval .= '' . "\n"; - $dropdown_built[$each_dropdown] = true; + $retval .= '>' . $function . '' . "\n"; + $dropdown_built[$function] = true; $op_spacing_needed = true; }