summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2011-12-19 15:20:53 +0000
committerUrban Müller2011-12-19 15:20:53 +0000
commitc626e16bc3e7cc669cb919acf90ce6cc8df530a8 (patch)
tree32ff7fcb48afea9543010e0e7142d249d23baa11 /itjs.class
parente1fe8b0bd01f64b9079ff14313f153a3de5f8a87 (diff)
downloaditools-c626e16bc3e7cc669cb919acf90ce6cc8df530a8.tar.gz
itools-c626e16bc3e7cc669cb919acf90ce6cc8df530a8.tar.bz2
itools-c626e16bc3e7cc669cb919acf90ce6cc8df530a8.zip
dont include same path twice
Diffstat (limited to 'itjs.class')
-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;