Fix projects controller patch

This commit is contained in:
Igor Zubkov 2011-12-24 03:48:06 +02:00
parent 4f6ce2c630
commit dfcd531916

View File

@ -8,7 +8,7 @@ module RedmineLandingPage
alias_method :show_without_landing_page, :show unless method_defined? :show_without_landing_page
def show
if !@project.landing_page.empty?
if @project.landing_page && !@project.landing_page.empty?
redirect_to @project.landing_page, :status => 302
else
show_without_landing_page