* (bug 2833) Fix bug in previous fix
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 13 Jul 2005 01:52:51 +0000 (01:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 13 Jul 2005 01:52:51 +0000 (01:52 +0000)
RELEASE-NOTES
includes/Article.php

index f1e1239..d357000 100644 (file)
@@ -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 ===
 
index 378039d..6a5ecaa 100644 (file)
@@ -2026,8 +2026,10 @@ class Article {
                                                $other = new User();
                                                $other->setName( $shortTitle );
                                        }
-                                       $other->setNewtalk(1);
-                                       $other->saveNewtalk();
+                                       if( $other ) {
+                                               $other->setNewtalk(1);
+                                               $other->saveNewtalk();
+                                       }
                                }
                        }