dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a50e0
)
fix for PHP 5.1, yet another arbitrary change of return value
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 3 Nov 2005 23:57:04 +0000
(23:57 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 3 Nov 2005 23:57:04 +0000
(23:57 +0000)
includes/SpecialBlockip.php
patch
|
blob
|
history
diff --git
a/includes/SpecialBlockip.php
b/includes/SpecialBlockip.php
index
41ebef5
..
0a9d2ba
100644
(file)
--- a/
includes/SpecialBlockip.php
+++ b/
includes/SpecialBlockip.php
@@
-191,10
+191,10
@@
class IPBlockForm {
if ( $expirestr == 'infinite' || $expirestr == 'indefinite' ) {
$expiry = '';
} else {
- # Convert GNU-style date,
returns -1 on error
+ # Convert GNU-style date,
on error returns -1 for PHP <5.1 and false for PHP >=5.1
$expiry = strtotime( $expirestr );
- if ( $expiry < 0 ) {
+ if ( $expiry < 0
|| $expiry === false
) {
$this->showForm( wfMsg( 'ipb_expiry_invalid' ) );
return;
}