From d5c62dfa887a4ac72fdc9fdb60cbc9d9056f7125 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 19 Oct 2007 00:23:12 +0000 Subject: Skip empty filenames --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.class') diff --git a/itjs.class b/itjs.class index bbeb618..4b1b2b2 100644 --- a/itjs.class +++ b/itjs.class @@ -115,7 +115,7 @@ function filenames($filelist) "prettyprint.css" => "$searchlib/prettyprint.css", ); - foreach (explode(",", it::replace(array('\?.*' => ""), $filelist)) as $file) + foreach (array_filter(explode(",", it::replace(array('\?.*' => ""), $filelist))) as $file) { $filenames = $special[$file] ? $special[$file] : "$path/$file"; -- cgit v1.2.3