diff --git a/bridges/MangareaderBridge.php b/bridges/MangareaderBridge.php index 17523d8..60fa885 100644 --- a/bridges/MangareaderBridge.php +++ b/bridges/MangareaderBridge.php @@ -96,7 +96,7 @@ class MangareaderBridge extends BridgeAbstract{ $query = "(.//*[@id='listing']//tr)[position() > 1]"; if($limit !== -1){ - $query = "(.//*[@id='listing']//tr)[position() > 1][position() <= " . $limit . "]"; + $query = "(.//*[@id='listing']//tr)[position() > 1][position() > last() - " . $limit . "]"; } $chapters = $xpath->query($query);