It is enough to check for existence here

This commit is contained in:
Michal Čihař 2012-05-10 10:06:30 +02:00
parent ff45b824cd
commit b56a0a727b

View File

@ -3723,9 +3723,7 @@ function PMA_getFunctionsForField($field, $insert_mode)
$functions = $GLOBALS['PMA_Types']->getAllFunctions();
$cnt_functions = count($functions);
for ($j = 0; $j < $cnt_functions; $j++) {
if (! isset($dropdown_built[$functions[$j]])
|| $dropdown_built[$functions[$j]] != 'true'
) {
if (! isset($dropdown_built[$functions[$j]])) {
// Is current function defined as default?
$selected = ($field['first_timestamp'] && $functions[$j] == $cfg['DefaultFunctions']['first_timestamp'])
|| (! $field['first_timestamp'] && $functions[$j] == $default_function)