diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-06 20:59:26 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-06 20:59:26 +0000 |
commit | e73e55333452ce5615c21f27f323cc94bb8654bc (patch) | |
tree | c7b6dd77684623d2461a77055f2b9608885f5570 /play/index.php | |
parent | db638040c7d6ee38187ffa9a99d083449e9669a3 (diff) | |
download | ampache-e73e55333452ce5615c21f27f323cc94bb8654bc.tar.gz ampache-e73e55333452ce5615c21f27f323cc94bb8654bc.tar.bz2 ampache-e73e55333452ce5615c21f27f323cc94bb8654bc.zip |
* Fixed display issues on TV page relating to
now playing Post AJAX and floating issues
* Fixed display of Last IP if tracking disabled
* Fixed play issue with invalid songs when
using Democratic Play
Diffstat (limited to 'play/index.php')
-rw-r--r-- | play/index.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/play/index.php b/play/index.php index 95f92344..8e07e6d2 100644 --- a/play/index.php +++ b/play/index.php @@ -120,6 +120,13 @@ if (make_bool($GLOBALS['user']->disabled)) { /* If we don't have a file, or the file is not readable */ if (!$song->file OR ( !is_readable($song->file) AND $catalog->catalog_type != 'remote' ) ) { + + // We need to make sure this isn't democratic play, if it is then remove the song + // from the vote list + if (is_object($tmp_playlist)) { + $tmp_playlist->delete_track($song_id); + } + debug_event('file_not_found',"Error song ($song->title) does not have a valid filename specified",'2'); echo "Error: Invalid Song Specified, file not found or file unreadable"; exit; |