Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -247,7 +247,7 @@ |
248 | 248 | */ |
249 | 249 | function efCentralNoticeDefaults( &$vars ) { |
250 | 250 | // Using global $wgUser for compatibility with 1.18 |
251 | | - global $wgNoticeProject, $wgUser, $wgRequest; |
| 251 | + global $wgNoticeProject, $wgUser, $wgMemc; |
252 | 252 | |
253 | 253 | // Initialize global Javascript variables. We initialize Geo with empty values so if the geo |
254 | 254 | // IP lookup fails we don't have any surprises. |
— | — | @@ -264,7 +264,7 @@ |
265 | 265 | $data = $wgMemc->get( $cacheKey ); |
266 | 266 | |
267 | 267 | // Cached ? |
268 | | - if ( is_null( $data ) ) { |
| 268 | + if ( !$data ) { |
269 | 269 | /** |
270 | 270 | * To be eligible, the user must match all of the following: |
271 | 271 | * - have an account |