Index: trunk/extensions/ConfirmEdit/ConfirmEdit_body.php |
— | — | @@ -218,7 +218,7 @@ |
219 | 219 | */ |
220 | 220 | function isIPWhitelisted() { |
221 | 221 | global $wgCaptchaWhitelistIP; |
222 | | - if( !empty( $wgCaptchaWhitelistIP ) ) { |
| 222 | + if( $wgCaptchaWhitelistIP ) { |
223 | 223 | $ip = wfGetIp(); |
224 | 224 | foreach ( $wgCaptchaWhitelistIP as $range ) { |
225 | 225 | if ( IP::isInRange( $ip, $range ) ) { |
— | — | @@ -349,7 +349,7 @@ |
350 | 350 | } |
351 | 351 | |
352 | 352 | global $wgCaptchaRegexes; |
353 | | - if( !empty( $wgCaptchaRegexes ) ) { |
| 353 | + if( $wgCaptchaRegexes ) { |
354 | 354 | // Custom regex checks |
355 | 355 | $oldtext = $this->loadText( $editPage, $section ); |
356 | 356 | |