Index: trunk/extensions/CentralNotice/special/SpecialBannerController.php |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | $script .= "\n\t\tvar url = '" . |
168 | 168 | Xml::escapeJsString( $wgNoticeFundraisingUrl ) . "';"; |
169 | 169 | $script .= <<<JAVASCRIPT |
170 | | - if ( bannerJson.landingPages && bannerJson.landingPages.length ) { |
| 170 | + if ( ( bannerJson.landingPages !== null ) && bannerJson.landingPages.length ) { |
171 | 171 | targets = String( bannerJson.landingPages ).split(','); |
172 | 172 | url += "?" + jQuery.param( { |
173 | 173 | 'landing_page': targets[Math.floor( Math.random() * targets.length )].replace( /^\s+|\s+$/, '' ) |