Index: trunk/phase3/includes/Title.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | |
188 | 188 | $rt = Title::newFromText( $m[1] ); |
189 | 189 | # Disallow redirects to Special:Userlogout |
190 | | - if ( $rt->getNamespace() == NS_SPECIAL && preg_match( '/^Userlogout/i', $rt->getText() ) ) { |
| 190 | + if ( !is_null($rt) && $rt->getNamespace() == NS_SPECIAL && preg_match( '/^Userlogout/i', $rt->getText() ) ) { |
191 | 191 | $rt = NULL; |
192 | 192 | } |
193 | 193 | } |