| 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 | |
| | 202 | |
| | 203 | /* If we don't have a file, or the file is not readable */ |
| | 204 | if (!$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 | } |