Skip to content

Commit c982b4b

Browse files
fix search pagination
1 parent 20aa1c7 commit c982b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function search(array $args): void
7272
if (!empty($q)) {
7373
$key = strval($main->getConf('podsumer', 'podcastindex_key'));
7474
$secret = strval($main->getConf('podsumer', 'podcastindex_secret'));
75-
$all = PodcastIndex::search($q, $page * $per_page, $key, $secret);
75+
$all = PodcastIndex::search($q, 1000, $key, $secret);
7676
$page_count = max(1, intval(ceil(count($all) / $per_page)));
7777
$results = array_slice($all, ($page - 1) * $per_page, $per_page);
7878
}

0 commit comments

Comments
 (0)