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:
2bd09c0
)
proper handling of infinite expiry
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 16 Feb 2004 00:05:25 +0000
(
00:05
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 16 Feb 2004 00:05:25 +0000
(
00:05
+0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
13cb657
..
891598d
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-179,7
+179,11
@@
class Block
function isExpired()
{
- return wfTimestampNow() > $this->mExpiry;
+ if ( !$this->mExpiry ) {
+ return false;
+ } else {
+ return wfTimestampNow() > $this->mExpiry;
+ }
}
function isValid()