Module: check_mk
Branch: master
Commit: 6bb01eb841b398dd42e3739c12a1e3e2d6531b81
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6bb01eb841b398…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 29 11:24:04 2011 +0200
Multisite: fix function-context button returning None
---
web/htdocs/wato.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 113a6c9..b0827fe 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -372,6 +372,8 @@ def page_handler():
if inmode == current_mode:
if hasattr(target, '__call__'):
target = target()
+ if not target:
+ continue
if '/' == target[0] or target.startswith('../') or
'://' in target:
html.context_button(buttontext, target)
else: