projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e31ab
)
Fix for 'missing configuration entry foo_menu_script'
author
Roland Häder
<roland@mxchange.org>
Sat, 27 Aug 2011 05:06:18 +0000
(
05:06
+0000)
committer
Roland Häder
<roland@mxchange.org>
Sat, 27 Aug 2011 05:06:18 +0000
(
05:06
+0000)
inc/template-functions.php
patch
|
blob
|
history
diff --git
a/inc/template-functions.php
b/inc/template-functions.php
index 59e5aadb9fe4b3dcced24ef4df74112d454ddaae..21eac438e2496db3fa5a6ba70ed8aaa0c708b5f5 100644
(file)
--- 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