Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php |
— | — | @@ -54,14 +54,14 @@ |
55 | 55 | // get the GET parameters |
56 | 56 | $this->articletext = $wgRequest->getVal( 'article' ); |
57 | 57 | // no GET parameters? Then try the URL |
58 | | - if ( $this->articletext === '' ) { |
| 58 | + if ( is_null( $this->articletext ) ) { |
59 | 59 | $params = SMWInfolink::decodeParameters( $query, false ); |
60 | 60 | reset( $params ); |
61 | 61 | $this->articletext = current( $params ); |
62 | 62 | } |
63 | 63 | $this->subject = SMWDataValueFactory::newTypeIDValue( '_wpg', $this->articletext ); |
64 | 64 | $offsettext = $wgRequest->getVal( 'offset' ); |
65 | | - $this->offset = ( $offsettext === '' ) ? 0:intval( $offsettext ); |
| 65 | + $this->offset = ( is_null( $offsettext ) ) ? 0 : intval( $offsettext ); |
66 | 66 | $dir = $wgRequest->getVal( 'dir' ); |
67 | 67 | if ( $smwgBrowseShowAll ) { |
68 | 68 | $this->showoutgoing = true; |