1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00
This commit is contained in:
Ryan Cramer
2024-06-07 12:33:43 -04:00
parent e78ada8854
commit 13221c3bd5

View File

@@ -995,7 +995,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
// limit is specified in both the selector and the arguments.
// we don't allow specifying limit in selector if one is specified in the arguments
$selector = preg_replace('/[, ]*\blimit=\d+/i', '', $selector);
if($limit > 0) $selector .= ", limit=" . (int) $limit;
if($limit > -1) $selector .= ", limit=" . (int) $limit;
}
if(stripos($selector, 'sort=') !== false) {