Index: trunk/extensions/InteractiveBlockMessage/InteractiveBlockMessageHooks.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | // so we enable cache for shorter time only so that we can recheck later |
54 | 54 | // if they weren't already unblocked - if there is a better way to do that, fix me |
55 | 55 | $expiry = $user->getBlock()->mExpiry; |
56 | | - if ( $expiry != 'infinityinfinity' ) { // this definitely needs fix :P |
| 56 | + if ( is_numeric ($expiry) ) { |
57 | 57 | $expiry = wfTimestamp( TS_UNIX, $expiry ) - wfTimestamp( TS_UNIX ); |
58 | 58 | if ( $expiry > 0 ) { |
59 | 59 | // just to make sure |