summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm2
1 files changed, 1 insertions, 1 deletions
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]];
} #}}}