summaryrefslogtreecommitdiffstats
path: root/templates/rightbar.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/rightbar.inc.php')
-rw-r--r--templates/rightbar.inc.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/templates/rightbar.inc.php b/templates/rightbar.inc.php
index 990d4f20..01a6aa10 100644
--- a/templates/rightbar.inc.php
+++ b/templates/rightbar.inc.php
@@ -88,17 +88,14 @@
$objects = array_slice($objects,0,100);
}
- $normal_array = array('radio','song','video');
+ $normal_array = array('radio','song','video','random');
foreach ($objects as $uid=>$object_data) {
- if (in_array($object_data['1'],$normal_array)) {
- $object = new $object_data['1']($object_data['0']);
+ $type = array_shift($object_data);
+ if (in_array($type,$normal_array)) {
+ $object = new $type(array_shift($object_data));
$object->format();
}
- else {
- $object = new Random();
- $object->f_link = Random::get_type_name($object_data['1']);
- }
?>
<li class="<?php echo flip_class(); ?>" >
<?php echo $object->f_link; ?>