From 8ced2d803e2e71b3804a02ce68315ca509f8df54 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 23 Dec 2013 20:53:14 +0100 Subject: Only render sidebar modules if present. --- app/views/common/_sidebar_module.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/common/_sidebar_module.html.erb b/app/views/common/_sidebar_module.html.erb index c5bc5c9..07eba16 100644 --- a/app/views/common/_sidebar_module.html.erb +++ b/app/views/common/_sidebar_module.html.erb @@ -1,3 +1,4 @@ +<% unless modules.nil? %> <% modules.keys.each do |c| -%> <% end -%> - +<% end -%> -- cgit v1.2.3