summaryrefslogtreecommitdiffstats
path: root/lib/class/catalog.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/catalog.class.php')
-rw-r--r--lib/class/catalog.class.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index f981bf2b..50db6749 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -613,8 +613,6 @@ class Catalog {
/* Set it as an empty array */
$files = array();
- $path = $path;
-
/* Open up the directory */
$handle = @opendir($path);
@@ -656,6 +654,7 @@ class Catalog {
$pattern = "/\.[" . conf('catalog_file_pattern') . "]$/i";
+ // REMOVE SECOND PREG_MATCH
if ( preg_match($pattern ,$file) && ($file_info > 0) && (!preg_match("/\.AppleDouble/", $file)) ) {
$files[] = $full_file;
} //is mp3 of at least some size