From bd0cc0acbcc89dba344de613a8f419f08f51da1e Mon Sep 17 00:00:00 2001 From: Paul 'flowerysong' Arthur Date: Thu, 10 Jun 2010 06:10:41 +0000 Subject: [PATCH] Preserve keys when slicing up the tmpplaylist array. Fixes FS#112, reported by Pietje Puk. --- docs/CHANGELOG | 1 + templates/rightbar.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG b/docs/CHANGELOG index fdd274aa..80bd9b25 100755 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -4,6 +4,7 @@ -------------------------------------------------------------------------- v.3.6-Alpha1 + - Fixed handling of temporary playlists with >100 items - Changed Browse from a singleton to multiple instances - Fixed setting access levels for plugin passwords - Fixed handling of unusual characters in passwords diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php index 7e931fee..55fcf26f 100644 --- a/templates/rightbar.inc.php +++ b/templates/rightbar.inc.php @@ -86,7 +86,7 @@ // Limit the number of objects we show here if (count($objects) > 100) { $truncated = (count($objects) - 100); - $objects = array_slice($objects,0,100); + $objects = array_slice($objects, 0, 100, true); } $normal_array = array('radio','song','video','random');