VRFS-1135 allow empty string to be passed in to start parameter

(due to jQuery not stripping null / empty params and refactor)
This commit is contained in:
Daniel Weigh 2014-02-20 00:18:11 -05:00
parent 85f8bf6cad
commit 069e9c8297
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module JamRuby
sort ||= 'date'
raise "not valid sort #{sort}" unless SORT_TYPES.include?(sort)
start = params[:start]
start = params[:start].presence
if sort == 'date'
start ||= FIXNUM_MAX
else