diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-05-30 14:42:33 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-05-30 14:42:33 -0400 |
commit | 69dcc79e94bd509fb539714ab1a49fd4567439ce (patch) | |
tree | 36bbd7fc2c5836c8612fe085eca6347c583f1bdc /play/index.php | |
parent | 53aff101bf61807c9341a09b5df54e3211573c38 (diff) | |
download | ampache-69dcc79e94bd509fb539714ab1a49fd4567439ce.tar.gz ampache-69dcc79e94bd509fb539714ab1a49fd4567439ce.tar.bz2 ampache-69dcc79e94bd509fb539714ab1a49fd4567439ce.zip |
Add and use Core::is_readable()
bea34c42 fixed one use of is_readable, but Windows users encountering
this issue would still be affected in other cases. This commit fixes
all of the important is_readable calls within Ampache; I'm not going
to hack this into external modules, so if they're broken people will
have to live with it.
Diffstat (limited to 'play/index.php')
-rw-r--r-- | play/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/play/index.php b/play/index.php index 4500a7ad..1b4c4abf 100644 --- a/play/index.php +++ b/play/index.php @@ -230,10 +230,10 @@ if ($catalog->catalog_type == 'remote') { } /* If we don't have a file, or the file is not readable */ -if (!$media->file OR !is_readable($media->file)) { +if (!$media->file || !Core::is_readable($media->file)) { - // We need to make sure this isn't democratic play, if it is then remove the song - // from the vote list + // 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($oid); } |