From: River Tarnell Date: Fri, 1 Jul 2005 23:42:36 +0000 (+0000) Subject: only set newtalk for actual users X-Git-Tag: 1.5.0beta2~91 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=514455483319cc77441637e47de4cab333618f7b;p=lhc%2Fweb%2Fwiklou.git only set newtalk for actual users --- 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(); + } } }