From 69dcc79e94bd509fb539714ab1a49fd4567439ce Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Thu, 30 May 2013 14:42:33 -0400 Subject: 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. --- play/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'play/index.php') 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); } -- cgit