From 0dc00ba80418e9df63597ebb657e28ad818f182d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 10 May 2012 10:11:39 +0200 Subject: [PATCH] No need to store this explicitely, we already have this information --- 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 7d66ddb63c..0167d14704 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -3671,7 +3671,6 @@ function PMA_getFunctionsForField($field, $insert_mode) } } $dropdown_built = array(); - $op_spacing_needed = false; // what function defined as default? // for the first timestamp we don't set the default function // if there is a default value for the timestamp @@ -3712,11 +3711,10 @@ function PMA_getFunctionsForField($field, $insert_mode) } $retval .= '>' . $function . '' . "\n"; $dropdown_built[$function] = true; - $op_spacing_needed = true; } // Create separator before all functions list - if ($op_spacing_needed) { + if (count($functions) > 0) { $retval .= '' . "\n"; }