Commit 409087f6 authored by tobyink's avatar tobyink

Limit number of retrieved scrobbles to 1200.

parent bd9e307c
......@@ -34,7 +34,9 @@ if(!isset($_GET['user']) && $logged_in == false) {
$user = new User($_GET['user']);
$scrobbleCount = (int)$_GET['count'];
if (!$scrobbleCount)
if ($scobbleCount >= 1200)
$scrobbleCount = 1200;
elseif (!$scrobbleCount)
$scrobbleCount = 100;
if(isset($user->name)) {
......
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