From 3f535071ffbee0252ace2cffe1948bf643e09145 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 16 Sep 2010 13:45:01 +0000 Subject: [PATCH] (bug 25182) ResourceLoader breaks because of warnings thrown when an open_basedir is set. Fix is untested, asking reporter to confirm --- includes/libs/CSSMin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index bc361150fb..93b75ac6a1 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -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; } } -- 2.20.1