(bug 25182) ResourceLoader breaks because of warnings thrown when an open_basedir...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 16 Sep 2010 13:45:01 +0000 (13:45 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 16 Sep 2010 13:45:01 +0000 (13:45 +0000)
includes/libs/CSSMin.php

index bc36115..93b75ac 100644 (file)
@@ -66,7 +66,7 @@ class CSSMin {
                                $file = ( isset( $path ) ? rtrim( $path, '/' ) . '/' : '' ) . "{$match['file'][0]}";
 
                                // Only proceed if we can access the file
-                               if ( file_exists( $file ) ) {
+                               if ( !is_null( $path ) && file_exists( $file ) ) {
                                        $files[] = $file;
                                }
                        }