summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2008-09-03 00:09:23 +0000
committermomo-i <momo-i@ampache>2008-09-03 00:09:23 +0000
commitd2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0 (patch)
tree69245cd86a33948974a50cea2abfccf47f833f32 /templates
parent7a6e4825d9738bd4c51deeb2eff942f2ffcbc5c5 (diff)
downloadampache-d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0.tar.gz
ampache-d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0.tar.bz2
ampache-d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0.zip
Fixed misstaken, and r1736 comment: Fixed if empty ids, don't run sql query
Diffstat (limited to 'templates')
-rw-r--r--templates/show_random_albums.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/show_random_albums.inc.php b/templates/show_random_albums.inc.php
index 45d31777..a262a4a1 100644
--- a/templates/show_random_albums.inc.php
+++ b/templates/show_random_albums.inc.php
@@ -24,7 +24,7 @@ $button = Ajax::button('?page=index&action=random_albums','random',_('Refresh'),
<?php show_box_top(_('Albums of the Moment') . ' ' . $button); ?>
<?php
- if ($album_id) {
+ if ($albums) {
foreach ($albums as $album_id) {
$album = new Album($album_id);
$album->format();
@@ -49,6 +49,6 @@ $button = Ajax::button('?page=index&action=random_albums','random',_('Refresh'),
</div>
<?php } // end foreach ?>
- <?php } // end if album_id ?>
+ <?php } // end if albums ?>
<?php show_box_bottom(); ?>