diff options
-rw-r--r-- | itjs.class | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |