From b56a0a727b862de7224202fc4c260593b64820ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 10 May 2012 10:06:30 +0200 Subject: [PATCH] It is enough to check for existence here --- libraries/common.lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 142f7d8673..f789012a36 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -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)