From 0e306660f5c26071094ecfac8de4917bcbca1445 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 12 Jun 2004 01:37:42 +0000 Subject: [PATCH] Detect bad titles on watchlist (shouldn't happen, but we want to live through it when it does) --- includes/SpecialWatchlist.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 45c055cc5d..e3950c3056 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -102,10 +102,14 @@ function wfSpecialWatchlist() $sk = $wgUser->getSkin(); while( $s = wfFetchObject( $res ) ) { $t = Title::makeTitle( $s->wl_namespace, $s->wl_title ); - $t = $t->getPrefixedText(); - $wgOut->addHTML( "
  • " . - $sk->makeKnownLink( $t, $t ) . - "
  • \n" ); + if( is_null( $t ) ) { + $wgOut->addHTML( '\n" ); + } else { + $t = $t->getPrefixedText(); + $wgOut->addHTML( "
  • " . + $sk->makeKnownLink( $t, $t ) . + "
  • \n" ); + } } $wgOut->addHTML( "\n" . "