Fix (Api)BlockTest for Sqlite. getRangeStart()/getRangeEnd() were returning null...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Jun 2011 18:13:21 +0000 (18:13 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Jun 2011 18:13:21 +0000 (18:13 +0000)
includes/Block.php

index fb294f1..2856824 100644 (file)
@@ -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: