From 289d29c18e173b591ccabd368dad63b6c54c6e92 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 13 Jul 2005 01:52:51 +0000 Subject: [PATCH] * (bug 2833) Fix bug in previous fix --- RELEASE-NOTES | 4 ++-- includes/Article.php | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f1e123906b..d357000d96 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -563,9 +563,9 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. * (bug 655) Provide empty search form when searching for nothing * (bug 2802) Display more than one character of the sort key * Nynorsk numeric format fix -* Added a new array for extensions to use, $wgExtensionCredits, see - documentation in DefaultSettings.php * (bug 2825) Fix regression in newtalk notifications for anons w/ enotif off +* (bug 2833) Fix bug in previous fix + === Caveats === diff --git a/includes/Article.php b/includes/Article.php index 378039d49a..6a5ecaa484 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2026,8 +2026,10 @@ class Article { $other = new User(); $other->setName( $shortTitle ); } - $other->setNewtalk(1); - $other->saveNewtalk(); + if( $other ) { + $other->setNewtalk(1); + $other->saveNewtalk(); + } } } -- 2.20.1