From: Roland Häder Date: Sat, 27 Aug 2011 05:06:18 +0000 (+0000) Subject: Fix for 'missing configuration entry foo_menu_script' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c19e0f9386166f8a98bbb0996f1bd29f28c4f4f6;p=mailer.git Fix for 'missing configuration entry foo_menu_script' --- 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