From c19e0f9386166f8a98bbb0996f1bd29f28c4f4f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 27 Aug 2011 05:06:18 +0000 Subject: [PATCH] Fix for 'missing configuration entry foo_menu_script' --- 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 59e5aadb9f..21eac438e2 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -1881,7 +1881,7 @@ function addStyleMenuContent ($menuMode, $mainAction, $action) { // Function to add onclick attribute function addJavaScriptMenuContent ($menuMode, $mainAction, $action, $what) { // 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