From eeedebbc55061db9bee5cf41f5d7506173b97f8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 27 Aug 2011 05:08:13 +0000 Subject: [PATCH] Same thing fixed, but without the opps ... --- inc/template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/template-functions.php b/inc/template-functions.php index 344e0c4378..c301e9fd40 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -1864,7 +1864,7 @@ function generateTimeUnitSelectionBox ($defaultUnit, $fieldName, $unitArray) { // Function to add style tag (wether display:none/block) function addStyleMenuContent ($menuMode, $mainAction, $action) { // Do we have foo_menu_javascript enabled? - if (getConfig($menuMode . '_menu_javascript') == 'N') { + if ((!isConfigEntrySet($menuMode . '_menu_javascript')) || (getConfig($menuMode . '_menu_javascript') == 'N')) { // Silently abort here, not enabled return ''; } // END - if -- 2.39.5