Changeset 1736 for trunk/templates/show_random_albums.inc.php
- Timestamp:
- 09/02/08 17:06:29 (4 months ago)
- Files:
-
- 1 modified
-
trunk/templates/show_random_albums.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/show_random_albums.inc.php
r1535 r1736 25 25 26 26 <?php 27 foreach ($albums as $album_id) { 28 $album = new Album($album_id); 29 $album->format(); 30 $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name); 27 if ($album_id) { 28 foreach ($albums as $album_id) { 29 $album = new Album($album_id); 30 $album->format(); 31 $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name); 31 32 ?> 32 33 <div class="random_album"> … … 48 49 </div> 49 50 50 <?php } ?> 51 <?php } // end foreach ?> 52 <?php } // end if album_id ?> 51 53 52 54 <?php show_box_bottom(); ?>
