Fixed previous article issue on first articles

This commit is contained in:
Yann Esposito (Yogsototh) 2010-11-15 16:01:29 +01:00
parent f7fd460c2f
commit 6943ed6805

View file

@ -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)