author | Lennard de Rijk <ljvderijk@gmail.com> |
Wed, 26 Nov 2008 16:33:36 +0000 | |
changeset 589 | ee9122db04af |
parent 588 | d6ae9dd215fb |
child 590 | 37735d97b541 |
--- a/app/soc/views/sitemap/sidebar.py Wed Nov 26 15:52:38 2008 +0000 +++ b/app/soc/views/sitemap/sidebar.py Wed Nov 26 16:33:36 2008 +0000 @@ -34,6 +34,9 @@ for callback in SIDEBAR: menu = callback(request) - sidebar.append(menu) + + if menu: + # only if there is a menu we should append it + sidebar.append(menu) return sidebar