1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

Preserve keys when slicing up the tmpplaylist array. Fixes FS#112, reported by

Pietje Puk.
This commit is contained in:
Paul 'flowerysong' Arthur 2010-06-10 06:10:41 +00:00
parent 7f36693353
commit bd0cc0acbc
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
-------------------------------------------------------------------------- --------------------------------------------------------------------------
v.3.6-Alpha1 v.3.6-Alpha1
- Fixed handling of temporary playlists with >100 items
- Changed Browse from a singleton to multiple instances - Changed Browse from a singleton to multiple instances
- Fixed setting access levels for plugin passwords - Fixed setting access levels for plugin passwords
- Fixed handling of unusual characters in passwords - Fixed handling of unusual characters in passwords

View file

@ -86,7 +86,7 @@
// Limit the number of objects we show here // Limit the number of objects we show here
if (count($objects) > 100) { if (count($objects) > 100) {
$truncated = (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'); $normal_array = array('radio','song','video','random');