From: Brion Vibber Date: Thu, 2 Jun 2005 00:24:31 +0000 (+0000) Subject: * (bug 2173) Fatal error when removing an article with an empty title from X-Git-Tag: 1.5.0alpha2~8 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=8ffbda06da3647569a25bd7c18a3047d1688df67;p=lhc%2Fweb%2Fwiklou.git * (bug 2173) Fatal error when removing an article with an empty title from the watchlist --- 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) ) );