We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 4e4a8b5c authored by Clint Adams's avatar Clint Adams

Allow toptracks and topartists stats anywhere in the range [10..500].

parent 0de59c86
......@@ -45,13 +45,13 @@ try {
$user = null;
}
$toptracks = $_GET['toptracks'];
if (500 != $toptracks) {
$toptracks = intval($_GET['toptracks']);
if (!($toptracks >= 10 && $toptracks <= 500)) {
$toptracks = 20;
}
$topartists = $_GET['topartists'];
if (500 != $topartists) {
$topartists = intval($_GET['topartists']);
if (!($topartists >= 10 && $topartists <= 500)) {
$topartists = 20;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment