diff options
author | momo-i <momo-i@ampache> | 2008-09-03 00:09:23 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2008-09-03 00:09:23 +0000 |
commit | d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0 (patch) | |
tree | 69245cd86a33948974a50cea2abfccf47f833f32 | |
parent | 7a6e4825d9738bd4c51deeb2eff942f2ffcbc5c5 (diff) | |
download | ampache-d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0.tar.gz ampache-d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0.tar.bz2 ampache-d2e5ba984bdebb6b8146fd5ce1bce6a6e08e16f0.zip |
Fixed misstaken, and r1736 comment: Fixed if empty ids, don't run sql query
-rw-r--r-- | templates/show_random_albums.inc.php | 4 |
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(); ?> |