We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26eb8fe commit 0cfe290Copy full SHA for 0cfe290
customization/www_librarybox/dl_statistics.func.php
@@ -42,7 +42,7 @@ function dl_read_stat_per_path ($path="%" , $sortBy , $sort, $type="all" , $lim
42
if ( $type == "all" ) {
43
$sth = $db->prepare ( " SELECT url, counter FROM dl_statistics WHERE url LIKE :path ORDER by $sortBy $sort ");
44
} elseif ( $type == "top" ) {
45
- $sth = $db->prepare ( "SELECT url, counter FROM dl_statistics WHERE url LIKE :path ORDER by $sortBy $sort LIMIT 1 , :max ");
+ $sth = $db->prepare ( "SELECT url, counter FROM dl_statistics WHERE url LIKE :path ORDER by $sortBy $sort LIMIT 0 , :max ");
46
$sth->bindParam (':max' , $limit, PDO::PARAM_INT );
47
}
48
0 commit comments