Index: trunk/phase3/includes/ImageFunctions.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * @return bool |
21 | 21 | */ |
22 | 22 | function wfIsBadImage( $name, $contextTitle = false ) { |
23 | | - static $badImages = false; |
| 23 | + static $badImages = null; |
24 | 24 | wfProfileIn( __METHOD__ ); |
25 | 25 | |
26 | 26 | # Handle redirects |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | return $bad; |
37 | 37 | } |
38 | 38 | |
39 | | - if( !$badImages ) { |
| 39 | + if( $badImages === null ) { |
40 | 40 | # Build the list now |
41 | 41 | $badImages = array(); |
42 | 42 | $lines = explode( "\n", wfMsgForContentNoTrans( 'bad_image_list' ) ); |