X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoader.php;h=c513aed018f4a90fcd555b4cf6a4abc5454038cf;hb=734a969d5506a80ceabfa2bc61bda79f76d73d5f;hp=9570e038a8f6cca80481543f3ab12bfe90936a82;hpb=a4880e9bbfd90642cfa5b852bdabf4101760f092;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 9570e038a8..c513aed018 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -781,7 +781,7 @@ class ResourceLoader implements LoggerAwareInterface { } // Save response to file cache unless there are errors - if ( isset( $fileCache ) && !$this->errors && !count( $missing ) ) { + if ( isset( $fileCache ) && !$this->errors && $missing === [] ) { // Cache single modules and images...and other requests if there are enough hits if ( ResourceFileCache::useFileCache( $context ) ) { if ( $fileCache->isCacheWorthy() ) { @@ -1036,7 +1036,7 @@ class ResourceLoader implements LoggerAwareInterface { $out = ''; $states = []; - if ( !count( $modules ) && !count( $missing ) ) { + if ( $modules === [] && $missing === [] ) { return <<. In this request,