From 4f11baa4a442c3fc7224f5050bc176985db719bc Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 10 May 2008 02:57:34 +0000 Subject: fix get recently played returning incorrect information if user supplied --- docs/CHANGELOG | 2 ++ lib/class/song.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- cgit