[#190] Work around a nil error introduced in c1cced5139

This commit is contained in:
Eric Davis 2011-02-19 20:58:12 -08:00
parent 584bfbde80
commit cb490caff4
1 changed files with 6 additions and 2 deletions

View File

@ -110,8 +110,12 @@ module Redmine
total += number_of_rows_on_project(project)
end
end
rows > @max_rows ? @max_rows : rows
if @max_rows.present?
rows > @max_rows ? @max_rows : rows
else
rows
end
end
# Returns the number of rows that will be used to list a project on