Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -920,6 +920,9 @@ |
921 | 921 | } else { |
922 | 922 | $titleObj = Title::newFromText( $returnto ); |
923 | 923 | } |
| 924 | + if ( !is_object( $titleObj ) ) { |
| 925 | + $titleObj = Title::newMainPage(); |
| 926 | + } |
924 | 927 | |
925 | 928 | $sk = $wgUser->getSkin(); |
926 | 929 | $link = $sk->makeLinkObj( $titleObj, '' ); |