Show
Ignore:
Timestamp:
09/02/08 17:06:29 (4 months ago)
Author:
momo-i
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/show_random_albums.inc.php

    r1535 r1736  
    2525 
    2626        <?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); 
    3132        ?> 
    3233        <div class="random_album"> 
     
    4849        </div> 
    4950        
    50         <?php } ?> 
     51                <?php } // end foreach ?> 
     52        <?php } // end if album_id ?> 
    5153 
    5254<?php show_box_bottom(); ?>