From 49e31364dc9d1a72af648400934f0d47f70d6d28 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 26 Oct 2011 21:48:04 +0000 Subject: [PATCH] Fixed process cache for bad images when the list is empty --- includes/ImageFunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ImageFunctions.php b/includes/ImageFunctions.php index aea00da711..471465d08e 100644 --- a/includes/ImageFunctions.php +++ b/includes/ImageFunctions.php @@ -19,7 +19,7 @@ * @return bool */ function wfIsBadImage( $name, $contextTitle = false ) { - static $badImages = false; + static $badImages = null; wfProfileIn( __METHOD__ ); # Handle redirects @@ -35,7 +35,7 @@ function wfIsBadImage( $name, $contextTitle = false ) { return $bad; } - if( !$badImages ) { + if( $badImages === null ) { # Build the list now $badImages = array(); $lines = explode( "\n", wfMsgForContentNoTrans( 'bad_image_list' ) ); -- 2.20.1