Fix for 'missing configuration entry foo_menu_script'
authorRoland Häder <roland@mxchange.org>
Sat, 27 Aug 2011 05:06:18 +0000 (05:06 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 27 Aug 2011 05:06:18 +0000 (05:06 +0000)
inc/template-functions.php

index 59e5aadb9fe4b3dcced24ef4df74112d454ddaae..21eac438e2496db3fa5a6ba70ed8aaa0c708b5f5 100644 (file)
@@ -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