summaryrefslogtreecommitdiff
path: root/genplaylist.php
diff options
context:
space:
mode:
Diffstat (limited to 'genplaylist.php')
-rwxr-xr-xgenplaylist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/genplaylist.php b/genplaylist.php
index 17c083b..a30333d 100755
--- a/genplaylist.php
+++ b/genplaylist.php
@@ -17,7 +17,7 @@
$found = 0;
while ($medianame = readdir($dir_handle))
{
- if (mediagettype($path .$name) == 2)
+ if (mediagettype($path .$medianame) == 2)
{
if ($medianame == $name)
$found = 1;