librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1077] Limit number of retrieved scrobbles to 1200.


From: Toby Inkster
Subject: [Librefm-commits] [1077] Limit number of retrieved scrobbles to 1200.
Date: Thu, 30 Apr 2009 18:47:13 +0000

Revision: 1077
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1077
Author:   tobyink
Date:     2009-04-30 18:47:12 +0000 (Thu, 30 Apr 2009)
Log Message:
-----------
Limit number of retrieved scrobbles to 1200.

Modified Paths:
--------------
    trunk/nixtape/user-recent-tracks.php

Modified: trunk/nixtape/user-recent-tracks.php
===================================================================
--- trunk/nixtape/user-recent-tracks.php        2009-04-30 18:44:04 UTC (rev 
1076)
+++ trunk/nixtape/user-recent-tracks.php        2009-04-30 18:47:12 UTC (rev 
1077)
@@ -34,7 +34,9 @@
 
 $user = new User($_GET['user']);
 $scrobbleCount = (int)$_GET['count'];
-if (!$scrobbleCount)
+if ($scobbleCount >= 1200)
+       $scrobbleCount = 1200;
+elseif (!$scrobbleCount)
        $scrobbleCount = 100;
 
 if(isset($user->name)) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]