diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 02:57:34 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 02:57:34 +0000 |
commit | 4f11baa4a442c3fc7224f5050bc176985db719bc (patch) | |
tree | f20df493ecb2b654c3f6d5ca7dcda2cb78640447 | |
parent | 08aa19a7b22338e6514438a1cc30192478cc758b (diff) | |
download | ampache-4f11baa4a442c3fc7224f5050bc176985db719bc.tar.gz ampache-4f11baa4a442c3fc7224f5050bc176985db719bc.tar.bz2 ampache-4f11baa4a442c3fc7224f5050bc176985db719bc.zip |
fix get recently played returning incorrect information if user supplied
-rwxr-xr-x | docs/CHANGELOG | 2 | ||||
-rw-r--r-- | lib/class/song.class.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 884dbcdc..09c14751 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,8 @@ -------------------------------------------------------------------------- v.3.4 + - Fixed get recently played not correctly limiting to specified user + (Thx Xgizzmo) - Fixed lack of refresh of controls when switching between localplay and other play methods - Add Debug page with current configuration and php state information diff --git a/lib/class/song.class.php b/lib/class/song.class.php index 4a5b5258..a0d2b2cf 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -917,7 +917,7 @@ class Song { $sql = "SELECT `object_count`.`object_id`,`object_count`.`user`,`object_count`.`object_type`, " . "`object_count`.`date` " . "FROM `object_count` " . - "WHERE `object_type`='song'$userlimit " . + "WHERE `object_type`='song'$user_limit " . "ORDER BY `object_count`.`date` DESC "; $db_results = Dba::query($sql); |