Skip to content

Commit

Permalink
It is enough to check for existence here
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 10, 2012
1 parent ff45b82 commit b56a0a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libraries/common.lib.php
Expand Up @@ -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)
Expand Down

0 comments on commit b56a0a7

Please sign in to comment.