From 8ffbda06da3647569a25bd7c18a3047d1688df67 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 2 Jun 2005 00:24:31 +0000 Subject: [PATCH] * (bug 2173) Fatal error when removing an article with an empty title from the watchlist --- RELEASE-NOTES | 2 ++ includes/SpecialWatchlist.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4529942300..d5a2fa82ed 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -235,6 +235,8 @@ Various bugfixes, small features, and a few experimental things: * (bug 2275) Update search index more or less right on page move * (bug 2053) Move comment whitespace trimming from edit page to save; leaves the whitespace from the section comment there on preview. +* (bug 2274) Respect stub threshold in category page list +* (bug 2173) Fatal error when removing an article with an empty title from the watchlist === Caveats === diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index f6833de5a5..97093d0dbf 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -50,7 +50,7 @@ function wfSpecialWatchlist( $par ) { $wgOut->addHTML( '

' ); foreach($id as $one) { $t = Title::newFromURL( $one ); - if($t->getDBkey() != '') { + if( !is_null( $t ) ) { $wl = WatchedItem::fromUserTitle( $wgUser, $t ); if( $wl->removeWatch() === false ) { $wgOut->addHTML( "
\n" . wfMsg( 'couldntremove', htmlspecialchars($one) ) ); -- 2.20.1