Fixed previous article issue on first articles
This commit is contained in:
parent
f7fd460c2f
commit
6943ed6805
1 changed files with 5 additions and 1 deletions
|
@ -160,7 +160,11 @@ def brother_for_at(page,n)
|
|||
if i.nil?
|
||||
return nil
|
||||
end
|
||||
brothers[ brothers.index(page) + n ]
|
||||
|
||||
if i + n < 0
|
||||
return nil
|
||||
end
|
||||
brothers[ i + n ]
|
||||
end
|
||||
|
||||
def article_brother(n)
|
||||
|
|
Loading…
Reference in a new issue