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:
315ac38
)
Fix (Api)BlockTest for Sqlite. getRangeStart()/getRangeEnd() were returning null...
author
Chad Horohoe
<demon@users.mediawiki.org>
Tue, 7 Jun 2011 18:13:21 +0000
(18:13 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Tue, 7 Jun 2011 18:13:21 +0000
(18:13 +0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
fb294f1
..
2856824
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-703,7
+703,7
@@
class Block {
public function getRangeStart() {
switch( $this->type ) {
case self::TYPE_USER:
- return
null
;
+ return
''
;
case self::TYPE_IP:
return IP::toHex( $this->target );
case self::TYPE_RANGE:
@@
-720,7
+720,7
@@
class Block {
public function getRangeEnd() {
switch( $this->type ) {
case self::TYPE_USER:
- return
null
;
+ return
''
;
case self::TYPE_IP:
return IP::toHex( $this->target );
case self::TYPE_RANGE: