summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 71f6b2a..91ebd74 100644
--- a/itjs.class
+++ b/itjs.class
@@ -133,7 +133,8 @@ function filenames($filelist)
$filenames = $special[$file] ? $special[$file] : "$path/$file";
foreach (explode(",", $filenames) as $filename)
- $result[] = $filename;
+ if (!$seen[$filename]++)
+ $result[] = $filename;
}
return $result;