From 514455483319cc77441637e47de4cab333618f7b Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Fri, 1 Jul 2005 23:42:36 +0000 Subject: [PATCH] only set newtalk for actual users --- includes/Article.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 9af2d9a4bf..57a1fe0bde 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1997,8 +1997,10 @@ class Article { $minoredit, $timestamp_of_pagechange); } else { $other = User::newFromName($shortTitle); - $other->setNewtalk(1); - $other->saveNewtalk(); + if ($other) { + $other->setNewtalk(1); + $other->saveNewtalk(); + } } } -- 2.20.1