Changeset 1714 for trunk/play/index.php

Show
Ignore:
Timestamp:
08/30/08 13:09:10 (4 months ago)
Author:
vollmerk
Message:

sync to trunk

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/play/index.php

    r1707 r1714  
    138138 */ 
    139139if ($random) {  
    140         if (!isset($start)) {  
     140        if ($start < 1) {  
    141141                $song_id = Random::get_single_song($_REQUEST['type']);  
    142142                // Save this one incase we do a seek 
     
    159159} 
    160160 
    161 /* If we don't have a file, or the file is not readable */ 
    162 if (!$song->file OR ( !is_readable($song->file) AND $catalog->catalog_type != 'remote' ) ) {  
    163  
    164         // We need to make sure this isn't democratic play, if it is then remove the song 
    165         // from the vote list 
    166         if (is_object($tmp_playlist)) {  
    167                 $tmp_playlist->delete_track($song_id);  
    168         } 
    169  
    170         debug_event('file_not_found',"Error song $song->file ($song->title) does not have a valid filename specified",'2'); 
    171         echo "Error: Invalid Song Specified, file not found or file unreadable";  
    172         exit;  
    173 } 
     161 
    174162 
    175163         
     
    212200        exit; 
    213201} // end if remote catalog 
     202 
     203/* If we don't have a file, or the file is not readable */ 
     204if (!$song->file OR !is_readable($song->file)) {  
     205 
     206        // We need to make sure this isn't democratic play, if it is then remove the song 
     207        // from the vote list 
     208        if (is_object($tmp_playlist)) {  
     209                $tmp_playlist->delete_track($song_id);  
     210        } 
     211 
     212        debug_event('file_not_found',"Error song $song->file ($song->title) does not have a valid filename specified",'2'); 
     213        echo "Error: Invalid Song Specified, file not found or file unreadable";  
     214        exit;  
     215} 
    214216 
    215217// make fread binary safe