From: joey Date: Sun, 8 Apr 2007 01:03:42 +0000 (+0000) Subject: oops X-Git-Tag: 1.49~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c490ad5ad81c01f2b7233496a407b845d4a35185;p=ikiwiki.git oops --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 600318e68..e77379a65 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -46,7 +46,7 @@ sub backlinks ($) { #{{{ } @links = sort { $a->{page} cmp $b->{page} } @links; - return \@links, [] if @links <= $config{numbacklinks} && ! $config{numbacklinks}; + return \@links, [] if @links <= $config{numbacklinks} || ! $config{numbacklinks}; return [@links[0..$config{numbacklinks}-1]], [@links[$config{numbacklinks}..$#links]]; } #}}}