From: Aaron Schulz Date: Mon, 9 Mar 2009 08:57:02 +0000 (+0000) Subject: Made getContributors() check DELETED_USER X-Git-Tag: 1.31.0-rc.0~42561 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=63d093b009ccd35da9451db3e30e802a5e79a711;p=lhc%2Fweb%2Fwiklou.git Made getContributors() check DELETED_USER --- diff --git a/includes/Article.php b/includes/Article.php index b79172574e..4d356ecd63 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -697,10 +697,13 @@ class Article { $user = $this->getUser(); $pageId = $this->getId(); + $hideBit = Revision::DELETED_USER; // username hidden? + $sql = "SELECT {$userTable}.*, MAX(rev_timestamp) as timestamp FROM $revTable LEFT JOIN $userTable ON rev_user = user_id WHERE rev_page = $pageId AND rev_user != $user + AND rev_deleted & $hideBit = 0 GROUP BY rev_user, rev_user_text, user_real_name ORDER BY timestamp DESC";