From: Roan Kattouw Date: Thu, 16 Sep 2010 13:45:01 +0000 (+0000) Subject: (bug 25182) ResourceLoader breaks because of warnings thrown when an open_basedir... X-Git-Tag: 1.31.0-rc.0~34902 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=3f535071ffbee0252ace2cffe1948bf643e09145;p=lhc%2Fweb%2Fwiklou.git (bug 25182) ResourceLoader breaks because of warnings thrown when an open_basedir is set. Fix is untested, asking reporter to confirm --- 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; } }