// 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