0
0
Fork 0

do not jump out when nothing was found

This commit is contained in:
Gibheer 2014-02-11 23:12:59 +01:00
parent 60cdaf7453
commit db30448a8e
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ SQL
if session.options[:id]
posts = posts.filter(:posts__id => session.options[:id].to_i)
return RouteNotFound if posts.empty?
load_previous_and_next_post(session, posts)
load_previous_and_next_post(session, posts) unless posts.empty?
else
if session.request.params['search']
posts = load_fulltextsearch(session, posts)