summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdocs/CHANGELOG2
-rw-r--r--lib/class/song.class.php2
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);