]> git.mxchange.org Git - mailer.git/blobdiff - inc/template-functions.php
Same thing fixed, but without the opps ...
[mailer.git] / inc / template-functions.php
index 344e0c43789576d4b54297520311a41392e4cd6c..c301e9fd403dc54eb4c817c287be33d4cd500b91 100644 (file)
@@ -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