summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-04-28 04:58:59 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-04-28 04:58:59 +0000
commitfa3c1ae5426a85afc42d22ac83ca0bea151c8d3f (patch)
tree3d766a4f83ace226a2df18a717846cb411e64120
parentdf1c8d74d5326e7342949aacce9fcd56eba7919f (diff)
downloadampache-fa3c1ae5426a85afc42d22ac83ca0bea151c8d3f.tar.gz
ampache-fa3c1ae5426a85afc42d22ac83ca0bea151c8d3f.tar.bz2
ampache-fa3c1ae5426a85afc42d22ac83ca0bea151c8d3f.zip
Fix building rating cache when displaying a playlist by mapping $object_ids from
a multidimensional array to a flat one when calling build_cache.
-rw-r--r--templates/show_playlist_songs.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/show_playlist_songs.inc.php b/templates/show_playlist_songs.inc.php
index 09764238..a0e41725 100644
--- a/templates/show_playlist_songs.inc.php
+++ b/templates/show_playlist_songs.inc.php
@@ -48,7 +48,7 @@ $ajax_url = Config::get('ajax_url');
<th class="cel_track"><?php echo _('Track'); ?></th>
<th class="cel_time"><?php echo _('Time'); ?></th>
<?php if (Config::get('ratings')) {
- Rating::build_cache('song', $object_ids);
+ Rating::build_cache('song', array_map(create_function('$i', 'return $i[\'object_id\'];'), $object_ids));
?>
<th class="cel_rating"><?php echo _('Rating'); ?></th>
<?php } ?>